use flask-bootstrap util to display flashed messages

This commit is contained in:
neingeist 2018-11-11 14:31:17 +01:00
parent 32dc3a9581
commit d3a3467fee
2 changed files with 4 additions and 9 deletions

View file

@ -28,10 +28,10 @@ def download():
form.start_time.data = datetime.now() - timedelta(hours=1)
form.length.data = 60
elif form.validate_on_submit():
flash('The download should start immediately.')
flash('The download should start immediately.', 'success')
return render_template('download.html', form=form, filename='test.mp3')
else:
flash('Error')
flash('Error', 'warning')
return render_template('download.html', form=form)