diff options
author | cedricbonhomme <devnull@localhost> | 2010-03-10 11:07:57 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-03-10 11:07:57 +0100 |
commit | efba9d427ecb487531d39cb0290475e196da2bd8 (patch) | |
tree | 76bb2b71e7d63b8e9858fb49361055ef106acd5a | |
parent | Improvement of the security (test URLs,etc.). Added mutex. (diff) | |
download | newspipe-efba9d427ecb487531d39cb0290475e196da2bd8.tar.gz newspipe-efba9d427ecb487531d39cb0290475e196da2bd8.tar.bz2 newspipe-efba9d427ecb487531d39cb0290475e196da2bd8.zip |
Bug fix: bad identifiant of feed.
-rw-r--r-- | feedgetter.py | 4 | ||||
-rw-r--r-- | utils.py | 4 |
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, \ @@ -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() |