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 | |
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.
-rwxr-xr-x | pyAggr3g470r.py | 2 | ||||
-rwxr-xr-x | utils.py | 9 |
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 @@ -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 |