renamed template for create a pitstop

This commit is contained in:
Joachim Lusiardi 2016-06-28 21:35:04 +02:00
parent a0be122186
commit fe4236eead
2 changed files with 2 additions and 2 deletions

View File

@ -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/<int:pid>', methods=['GET', 'POST'])