aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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