use flask-bootstrap util to display flashed messages
This commit is contained in:
parent
32dc3a9581
commit
d3a3467fee
2 changed files with 4 additions and 9 deletions
|
@ -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)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue