aboutsummaryrefslogtreecommitdiff
path: root/src/web/views
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-25 13:14:06 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-26 23:47:57 +0100
commit15c4ed6bebdeb277c24bd92dab5bba900fc90de4 (patch)
tree0171f769ecda89185885ad0a792fdb570913962a /src/web/views
parentbootstraping right panel (diff)
downloadnewspipe-15c4ed6bebdeb277c24bd92dab5bba900fc90de4.tar.gz
newspipe-15c4ed6bebdeb277c24bd92dab5bba900fc90de4.tar.bz2
newspipe-15c4ed6bebdeb277c24bd92dab5bba900fc90de4.zip
redoing constant, handling read / unread in menu, removing bad optim for loading articles
Diffstat (limited to 'src/web/views')
-rw-r--r--src/web/views/views.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/web/views/views.py b/src/web/views/views.py
index 297cae28..e296c8ac 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -279,7 +279,8 @@ def get_middle_panel():
'icon_url': url_for('icon.icon', url=feed.icon_url)
if feed.icon_url else None}
for feed in FeedController(g.user.id).read()}
- articles = ArticleController(g.user.id).read(**filters).order_by('-date')
+ articles = ArticleController(g.user.id).read(**filters)\
+ .order_by(Article.date.desc())
return jsonify(**{'articles': [{'title': art.title, 'liked': art.like,
'read': art.readed, 'article_id': art.id,
'feed_id': art.feed_id, 'category_id': art.category_id or 0,
bgstack15