aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpyAggr3g470r.py2
-rwxr-xr-xutils.py9
2 files changed, 6 insertions, 5 deletions
diff --git a/pyAggr3g470r.py b/pyAggr3g470r.py
index be2e796c..317fd140 100755
--- a/pyAggr3g470r.py
+++ b/pyAggr3g470r.py
@@ -1179,4 +1179,4 @@ if __name__ == '__main__':
thread_watch_base = threading.Thread(None, root.watch_base_classic, None, ())
thread_watch_base.setDaemon(True)
thread_watch_base.start()
- cherrypy.quickstart(root, config=path)
+ cherrypy.quickstart(root, config=path) \ No newline at end of file
diff --git a/utils.py b/utils.py
index 4da2dd99..0e71523a 100755
--- a/utils.py
+++ b/utils.py
@@ -392,15 +392,16 @@ def load_feed():
else:
language = "IMPORT_ERROR"
- # informations about an article
+ # informations about the current article
article_list = [article_id, article[0], unescape(article[1]), \
article[2], unescape(article[3]), \
article[4], language, article[6]]
-
+ # update the number of favorites articles
nb_favorites = nb_favorites + int(article[6])
-
+ # add the informations about the current article
+ # to the list of articles of the current feed
if feed_id not in articles:
try:
articles[feed_id] = blist([article_list])
@@ -424,4 +425,4 @@ def load_feed():
LOCKER.release()
return (articles, feeds, nb_articles, nb_unread_articles, nb_favorites, nb_mail_notifications)
LOCKER.release()
- return (articles, feeds, nb_articles, nb_unread_articles, nb_favorites, nb_mail_notifications)
+ return (articles, feeds, nb_articles, nb_unread_articles, nb_favorites, nb_mail_notifications) \ No newline at end of file
bgstack15