diff options
author | François Schmidts <francois.schmidts@gmail.com> | 2015-05-24 19:09:35 +0200 |
---|---|---|
committer | François Schmidts <francois.schmidts@gmail.com> | 2015-07-02 15:34:16 +0200 |
commit | 4f03d7b324360f718780fcbdfc359f60896fead4 (patch) | |
tree | 772ead2931ebd12dfff3eb2199d13463ae3e1fc3 /pyaggr3g470r/views/views.py | |
parent | adding comments and tests (diff) | |
download | newspipe-4f03d7b324360f718780fcbdfc359f60896fead4.tar.gz newspipe-4f03d7b324360f718780fcbdfc359f60896fead4.tar.bz2 newspipe-4f03d7b324360f718780fcbdfc359f60896fead4.zip |
accelerating the feeds page
Diffstat (limited to 'pyaggr3g470r/views/views.py')
-rw-r--r-- | pyaggr3g470r/views/views.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py index 77f3b147..e0bd1dcb 100644 --- a/pyaggr3g470r/views/views.py +++ b/pyaggr3g470r/views/views.py @@ -246,7 +246,7 @@ def render_home(filters=None, head_titles=None, arti_contr = ArticleController(g.user.id) feeds = {feed.id: feed.title for feed in feed_contr.read()} - unread = arti_contr.get_unread() + unread = arti_contr.count_by_feed(readed=False) in_error = {feed.id: feed.error_count for feed in feed_contr.read(error_count__gt=2)} |