From 5a1e44faff19b70eddf80f9573f7972c30ce8c57 Mon Sep 17 00:00:00 2001 From: aldacron Date: Wed, 17 May 2017 00:56:51 -0700 Subject: [PATCH] added success message after torrent edit --- nyaa/routes.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nyaa/routes.py b/nyaa/routes.py index a538a8b..b34c356 100644 --- a/nyaa/routes.py +++ b/nyaa/routes.py @@ -536,6 +536,9 @@ def edit_torrent(torrent_id): 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)) else: # Setup form with pre-formatted form.