aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views/views.py
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-09 13:35:33 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-09 13:35:33 +0100
commit7a3c694e4b62ea73df023fe8a675896bd70ce1e5 (patch)
treede35e2a9ccf7ae14276dc121ff9133a83d0845a8 /pyaggr3g470r/views/views.py
parentTest (diff)
downloadnewspipe-7a3c694e4b62ea73df023fe8a675896bd70ce1e5.tar.gz
newspipe-7a3c694e4b62ea73df023fe8a675896bd70ce1e5.tar.bz2
newspipe-7a3c694e4b62ea73df023fe8a675896bd70ce1e5.zip
Bug fix.
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r--pyaggr3g470r/views/views.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index 579d1e1b..9d368c42 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -574,18 +574,11 @@ def edit_feed(feed_id=None):
# Create a new feed
existing_feed = [f for f in g.user.feeds if f.link == form.link.data]
if len(existing_feed) == 0:
- print("Test 1")
new_feed = Feed(title=form.title.data, description="", link=form.link.data, \
site_link=form.site_link.data, enabled=form.enabled.data)
- print("Test 2")
g.user.feeds.append(new_feed)
#user.feeds = sorted(user.feeds, key=lambda t: t.title.lower())
- print("Test 3")
- try:
- db.session.commit()
- except Ecxeption as e:
- print(e)
- print("Test 4")
+ db.session.commit()
flash(gettext('Feed successfully created.'), 'success')
utils.fetch(g.user.id, Feed.query.filter(Feed.link == form.link.data).first().id)
bgstack15