aboutsummaryrefslogtreecommitdiff
path: root/src/web/views/views.py
diff options
context:
space:
mode:
authorFrançois Schmidts <francois.schmidts@gmail.com>2016-01-21 13:48:06 +0100
committerFrançois Schmidts <francois.schmidts@gmail.com>2016-01-26 23:47:08 +0100
commit41aea41aaff0886fd6c211f03db2b54863a97165 (patch)
tree8d67b31febf78b5c40d60dc8ea3cb613fa4a65f2 /src/web/views/views.py
parentbootstraping react (diff)
downloadnewspipe-41aea41aaff0886fd6c211f03db2b54863a97165.tar.gz
newspipe-41aea41aaff0886fd6c211f03db2b54863a97165.tar.bz2
newspipe-41aea41aaff0886fd6c211f03db2b54863a97165.zip
filters are working !
Diffstat (limited to 'src/web/views/views.py')
-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 b29ef645..ae3d9b01 100644
--- a/src/web/views/views.py
+++ b/src/web/views/views.py
@@ -263,9 +263,10 @@ def get_menu():
@login_required
def get_middle_panel():
fd_hash = {fd.id: fd for fd in FeedController(g.user.id).read()}
- articles = ArticleController(g.user.id).read(readed=False)
+ articles = ArticleController(g.user.id).read(readed=False).order_by('date')
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,
'feed_title': fd_hash[art.feed_id].title,
'icon_url': url_for('icon.icon', url=fd_hash[art.feed_id].icon_url)
if fd_hash[art.feed_id].icon_url else None,
bgstack15