aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-05-10 10:22:07 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-05-10 10:22:07 +0200
commit13deb6c60ec2e3458de8d76fe18d6eeb46f07ac7 (patch)
tree8d0e36635999da3ed5278ec20520c3eb29408b99 /pyaggr3g470r
parentUpdated link to the page of articles for a feed. (diff)
downloadnewspipe-13deb6c60ec2e3458de8d76fe18d6eeb46f07ac7.tar.gz
newspipe-13deb6c60ec2e3458de8d76fe18d6eeb46f07ac7.tar.bz2
newspipe-13deb6c60ec2e3458de8d76fe18d6eeb46f07ac7.zip
The list of inactive feeds is now sorted.
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r--pyaggr3g470r/views/views.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pyaggr3g470r/views/views.py b/pyaggr3g470r/views/views.py
index 658276c0..1b834d0e 100644
--- a/pyaggr3g470r/views/views.py
+++ b/pyaggr3g470r/views/views.py
@@ -440,6 +440,7 @@ def inactives():
elapsed = today - last_post
if elapsed > datetime.timedelta(days=nb_days):
inactives.append((feed, elapsed))
+ inactives.sort(key=lambda tup: tup[1], reverse=True)
return render_template('inactives.html', inactives=inactives, nb_days=nb_days)
@app.route('/duplicates/<int:feed_id>', methods=['GET'])
bgstack15