From 5625fb1192243b19ceac9621b003df39542c4c51 Mon Sep 17 00:00:00 2001 From: François Schmidts Date: Tue, 2 Feb 2016 22:09:18 +0100 Subject: using api and repairing feed page --- src/web/views/feed.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/web/views') diff --git a/src/web/views/feed.py b/src/web/views/feed.py index 1b6c8654..959179f9 100644 --- a/src/web/views/feed.py +++ b/src/web/views/feed.py @@ -88,9 +88,11 @@ def delete(feed_id=None): @login_required def reset_errors(feed_id): feed_contr = FeedController(g.user.id) - feed_contr.update({'id': feed_id}, - {'error_count': 0, 'last_error': ''}) - return '' + feed = feed_contr.get(id=feed_id) + feed_contr.update({'id': feed_id}, {'error_count': 0, 'last_error': ''}) + flash(gettext('Feed %(feed_title)r successfully updated.', + feed_title=feed.title), 'success') + return redirect(request.referrer or url_for('home')) @feed_bp.route('/bookmarklet', methods=['GET', 'POST']) -- cgit