diff options
author | cedricbonhomme <devnull@localhost> | 2010-11-04 22:37:08 +0100 |
---|---|---|
committer | cedricbonhomme <devnull@localhost> | 2010-11-04 22:37:08 +0100 |
commit | c7ccb29003c3e50724a5fdb3820c0e7d5ab99114 (patch) | |
tree | c13b7bc8fdc095ea9a87be8ab18d2ff838763c2f /utils.py | |
parent | Improvement of the performance (concerning the load of articles from data bas... (diff) | |
download | newspipe-c7ccb29003c3e50724a5fdb3820c0e7d5ab99114.tar.gz newspipe-c7ccb29003c3e50724a5fdb3820c0e7d5ab99114.tar.bz2 newspipe-c7ccb29003c3e50724a5fdb3820c0e7d5ab99114.zip |
Added comments.
Diffstat (limited to 'utils.py')
-rwxr-xr-x | utils.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -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 |