bugfix for creating first pitstop of a vehicle

This commit is contained in:
Joachim Lusiardi 2016-06-26 08:25:53 +02:00
parent 5b69a82e05
commit f2623cf6e9

View File

@ -182,7 +182,7 @@ def create_pit_stop_form(vid):
if len(vehicle.pitstops) > 0:
last_pitstop = vehicle.pitstops[-1]
else:
last_pitstop = Pitstop(0, 0, date(1970, 1, 1))
last_pitstop = Pitstop(0, 0, date(1970, 1, 1), 0)
form = CreatePitstopForm()
form.set_pitstop(last_pitstop)