diff options
Diffstat (limited to 'utils.py')
-rwxr-xr-x | utils.py | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -369,6 +369,11 @@ def load_feed(): except: pass + nb_articles = 0 + nb_unread_articles = 0 + nb_mail_notifications = 0 + nb_favorites = 0 + # articles[feed_id] = (article_id, article_date, article_title, # article_link, article_description, article_readed, # article_language, like) @@ -381,11 +386,6 @@ def load_feed(): tupleList = [(x[0].lower(), x) for x in list_of_feeds] tupleList.sort(key=operator.itemgetter(0)) - nb_articles = 0 - nb_unread_articles = 0 - nb_mail_notifications = 0 - nb_favorites = 0 - for feed in [x[1] for x in tupleList]: list_of_articles = c.execute(\ "SELECT * FROM articles WHERE feed_link='" + \ |