aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r--pyaggr3g470r/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py
index bc08697c..7a4eb310 100644
--- a/pyaggr3g470r/views.py
+++ b/pyaggr3g470r/views.py
@@ -291,7 +291,8 @@ def edit_feed(feed_id=None):
# Create a new feed
if len([feed for feed in user.feeds if feed.link == form.link.data]) == 0:
new_feed = models.Feed(title=form.title.data, link=form.link.data, \
- site_link=form.site_link.data, email=form.email_notification.data)
+ site_link=form.site_link.data, email=form.email_notification.data, \
+ enabled=form.enabled.data)
user.feeds.append(new_feed)
user.feeds = sorted(user.feeds, key=lambda t: t.title.lower())
user.save()
bgstack15