aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/views
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2015-07-05 17:41:06 +0200
committerFrançois Schmidts <francois.schmidts@gmail.com>2015-07-06 09:04:58 +0200
commitc1551acb30513f96d0053b96e240da7ab68833d2 (patch)
tree9b7beac4a521edf095d6c352cd2d0801428b521b /pyaggr3g470r/views
parentconstructing feed from normal url also (diff)
downloadnewspipe-c1551acb30513f96d0053b96e240da7ab68833d2.tar.gz
newspipe-c1551acb30513f96d0053b96e240da7ab68833d2.tar.bz2
newspipe-c1551acb30513f96d0053b96e240da7ab68833d2.zip
making bookmaklet work for any url
Diffstat (limited to 'pyaggr3g470r/views')
-rw-r--r--pyaggr3g470r/views/feed.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pyaggr3g470r/views/feed.py b/pyaggr3g470r/views/feed.py
index d31aa212..224e27fb 100644
--- a/pyaggr3g470r/views/feed.py
+++ b/pyaggr3g470r/views/feed.py
@@ -1,6 +1,6 @@
#! /usr/bin/env python
# -*- coding: utf-8 -
-
+import logging
from datetime import datetime
from sqlalchemy import desc
from werkzeug.exceptions import BadRequest
@@ -99,8 +99,7 @@ def bookmarklet():
if feed_exists:
flash(gettext("Couldn't add feed: feed already exists."),
"warning")
- return redirect(url_for('feed.form',
- feed_id=existing_feeds[0].id))
+ return redirect(url_for('feed.form', feed_id=feed_exists[0].id))
feed = feed_contr.create(**construct_feed_from(url))
flash(gettext('Feed was successfully created.'), 'success')
bgstack15