fix sorting for regular costs

This commit is contained in:
Joachim Lusiardi 2021-06-23 08:29:35 +02:00
parent 673b671ab8
commit bc7e1591bd
1 changed files with 3 additions and 1 deletions

View File

@ -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):