From f2623cf6e9cd98aa654b50c9296a3c530e48ee56 Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Sun, 26 Jun 2016 08:25:53 +0200 Subject: [PATCH] bugfix for creating first pitstop of a vehicle --- app/rollerverbrauch/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/rollerverbrauch/__init__.py b/app/rollerverbrauch/__init__.py index b37ac1c..2f135c5 100644 --- a/app/rollerverbrauch/__init__.py +++ b/app/rollerverbrauch/__init__.py @@ -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)