aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-05 13:40:56 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-05 13:40:56 +0100
commit47f5c1e3fdbee3c800efde1e2cb6d85a70def4a3 (patch)
treea6b098ca7a83196a77b97cc4451be3de3fe90391 /pyaggr3g470r
parentUpdated the documentation (deployment section - data base initialization). (diff)
downloadnewspipe-47f5c1e3fdbee3c800efde1e2cb6d85a70def4a3.tar.gz
newspipe-47f5c1e3fdbee3c800efde1e2cb6d85a70def4a3.tar.bz2
newspipe-47f5c1e3fdbee3c800efde1e2cb6d85a70def4a3.zip
Provides to the user a way to set the error count of a feed to 0 by enabling it again.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views/views.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index 6e35ccfa..0f1f8765 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -563,6 +563,10 @@ def edit_feed(feed_id=None):
# Edit an existing feed
feed = FeedController(g.user.id).get(id=feed_id)
form.populate_obj(feed)
+ if feed.enabled:
+ # set the error count to 0
+ feed.error_count = 0
+ feed.last_error = ""
db.session.commit()
flash(gettext('Feed successfully updated.'), 'success')
return redirect('/edit_feed/' + str(feed_id))
bgstack15