1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 19:19:59 +00:00

added success message after torrent edit

This commit is contained in:
aldacron 2017-05-17 00:56:51 -07:00
parent f5551dd1e5
commit 5a1e44faff

View file

@ -536,6 +536,9 @@ def edit_torrent(torrent_id):
db.session.commit() db.session.commit()
flask.flash(flask.Markup(
'Torrent has been successfully edited! Changes might take a few minutes to show up.'), 'info')
return flask.redirect('/view/' + str(torrent_id)) return flask.redirect('/view/' + str(torrent_id))
else: else:
# Setup form with pre-formatted form. # Setup form with pre-formatted form.