fix sorting for regular costs
This commit is contained in:
parent
673b671ab8
commit
bc7e1591bd
|
@ -204,7 +204,9 @@ def compute_lower_limits_for_new_pitstop(
|
|||
|
||||
|
||||
def pitstop_service_key(x):
|
||||
return x.date, x.odometer
|
||||
# if the entry got no odometer (regular costs!) then we assume it's okay
|
||||
# to have regular cost at a virtual odometer of 0 on that day.
|
||||
return x.date, x.odometer or 0
|
||||
|
||||
|
||||
def get_event_line_for_vehicle(vehicle):
|
||||
|
|
Loading…
Reference in New Issue