slotUI/slotCli.py

changeset 122
8344d8d38c4f
parent 121
6ea0dff10e78
child 123
ec623e5fcbca
equal deleted inserted replaced
121:6ea0dff10e78 122:8344d8d38c4f
122 def reset_slots(self): 122 def reset_slots(self):
123 idx = 0 123 idx = 0
124 for slt in self.slot: 124 for slt in self.slot:
125 slt["laps"] = 0 125 slt["laps"] = 0
126 slt["laps_last"] = 0 126 slt["laps_last"] = 0
127 slt["last"] = 0.00 127 slt["last"] = 999.00
128 slt["best"] = 999.00 128 slt["best"] = 999.00
129 slt["fuel"] = 100 129 slt["fuel"] = 100
130 slt["fuel_last"] = 0 130 slt["fuel_last"] = 0
131 slt["position"] = idx 131 slt["position"] = idx
132 slt["car"] = idx # used for sort order calculation 132 slt["car"] = idx # used for sort order calculation

mercurial