aboutsummaryrefslogtreecommitdiff
path: root/utils.py
diff options
context:
space:
mode:
authorcedricbonhomme <devnull@localhost>2010-11-04 22:37:08 +0100
committercedricbonhomme <devnull@localhost>2010-11-04 22:37:08 +0100
commitc7ccb29003c3e50724a5fdb3820c0e7d5ab99114 (patch)
treec13b7bc8fdc095ea9a87be8ab18d2ff838763c2f /utils.py
parentImprovement of the performance (concerning the load of articles from data bas... (diff)
downloadnewspipe-c7ccb29003c3e50724a5fdb3820c0e7d5ab99114.tar.gz
newspipe-c7ccb29003c3e50724a5fdb3820c0e7d5ab99114.tar.bz2
newspipe-c7ccb29003c3e50724a5fdb3820c0e7d5ab99114.zip
Added comments.
Diffstat (limited to 'utils.py')
-rwxr-xr-xutils.py9
1 files changed, 5 insertions, 4 deletions
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