Merge branch 'development' into issue_5_more_consumable_material
This commit is contained in:
commit
90639a757d
|
@ -194,7 +194,7 @@ def create_pit_stop_form(vid):
|
||||||
if len(vehicle.pitstops) > 0:
|
if len(vehicle.pitstops) > 0:
|
||||||
last_pitstop = vehicle.pitstops[-1]
|
last_pitstop = vehicle.pitstops[-1]
|
||||||
else:
|
else:
|
||||||
last_pitstop = Pitstop(0, 0, date(1970, 1, 1))
|
last_pitstop = Pitstop(0, 0, date(1970, 1, 1), 0)
|
||||||
|
|
||||||
form = CreatePitstopForm()
|
form = CreatePitstopForm()
|
||||||
form.set_pitstop(last_pitstop)
|
form.set_pitstop(last_pitstop)
|
||||||
|
|
Loading…
Reference in New Issue