From fe4236eead5b2924720a1704c6e9259beb4b018b Mon Sep 17 00:00:00 2001 From: Joachim Lusiardi Date: Tue, 28 Jun 2016 21:35:04 +0200 Subject: [PATCH] renamed template for create a pitstop --- app/rollerverbrauch/__init__.py | 4 ++-- .../templates/{newPitStopForm.html => createPitStopForm.html} | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename app/rollerverbrauch/templates/{newPitStopForm.html => createPitStopForm.html} (100%) 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