aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
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