aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-03-10 11:07:57 +0100
committercedricbonhomme <devnull@localhost>2010-03-10 11:07:57 +0100
commitefba9d427ecb487531d39cb0290475e196da2bd8 (patch)
tree76bb2b71e7d63b8e9858fb49361055ef106acd5a
parentImprovement of the security (test URLs,etc.). Added mutex. (diff)
downloadnewspipe-efba9d427ecb487531d39cb0290475e196da2bd8.tar.gz
newspipe-efba9d427ecb487531d39cb0290475e196da2bd8.tar.bz2
newspipe-efba9d427ecb487531d39cb0290475e196da2bd8.zip
Bug fix: bad identifiant of feed.
-rw-r--r--feedgetter.py4
-rw-r--r--utils.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/feedgetter.py b/feedgetter.py
index 52dbb874..eea8bfbb 100644
--- a/feedgetter.py
+++ b/feedgetter.py
@@ -39,8 +39,8 @@ class FeedGetter(object):
self.conn = sqlite3.connect("./var/feed.db", isolation_level = None)
self.c = self.conn.cursor()
self.c.execute('''create table if not exists feeds
- (feed_title text, feed_site_link text PRIMARY KEY, \
- feed_link text, feed_image_link text)''')
+ (feed_title text, feed_site_link text, \
+ feed_link text PRIMARY KEY, feed_image_link text)''')
self.c.execute('''create table if not exists articles
(article_date text, article_title text, \
article_link text PRIMARY KEY, article_description text, \
diff --git a/utils.py b/utils.py
index 1412a50a..8c6e947d 100644
--- a/utils.py
+++ b/utils.py
@@ -144,8 +144,8 @@ def load_feed():
Load feeds and articles in a dictionary.
"""
LOCKER.acquire()
- list_of_feeds = None
- list_of_articles = None
+ list_of_feeds = []
+ list_of_articles = []
try:
conn = sqlite3.connect("./var/feed.db", isolation_level = None)
c = conn.cursor()
bgstack15