diff --git a/app/rollerverbrauch/__init__.py b/app/rollerverbrauch/__init__.py index 350e46e..8f30bb6 100644 --- a/app/rollerverbrauch/__init__.py +++ b/app/rollerverbrauch/__init__.py @@ -214,7 +214,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), 0) + last_pitstop = Pitstop(0, 0, date(1970, 1, 1), 0, None) form = CreatePitstopForm() form.set_pitstop(last_pitstop) @@ -237,7 +237,7 @@ def create_pit_stop_form(vid): 'odometer': 'Odometer must be greater than %s km.' % (str(last_pitstop.odometer)), 'costs': 'Costs must be higher than 0.01 €.' } - return render_template('newPitStopForm.html', form=form, vehicle=vehicle, messages = messages) + return render_template('createPitStopForm.html', form=form, vehicle=vehicle, messages=messages) @app.route('/pitstops/delete/', methods=['GET', 'POST']) diff --git a/app/rollerverbrauch/templates/newPitStopForm.html b/app/rollerverbrauch/templates/createPitStopForm.html similarity index 100% rename from app/rollerverbrauch/templates/newPitStopForm.html rename to app/rollerverbrauch/templates/createPitStopForm.html