aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-09 13:18:23 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-09 13:18:23 +0100
commitc625360db0971d1e79b5e56ad6e6d13cbbe7a927 (patch)
tree979d87b1c0b3789c2cf7bd1eda983635e04e1077 /pyaggr3g470r
parentUpdated NEWS.rst for the release 6.3. (diff)
downloadnewspipe-c625360db0971d1e79b5e56ad6e6d13cbbe7a927.tar.gz
newspipe-c625360db0971d1e79b5e56ad6e6d13cbbe7a927.tar.bz2
newspipe-c625360db0971d1e79b5e56ad6e6d13cbbe7a927.zip
Test
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 9d368c42..cb984a9c 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -574,11 +574,15 @@ 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")
db.session.commit()
+ print("Test 4")
flash(gettext('Feed successfully created.'), 'success')
utils.fetch(g.user.id, Feed.query.filter(Feed.link == form.link.data).first().id)
bgstack15