diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-05-10 10:22:07 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2015-05-10 10:22:07 +0200 |
commit | 13deb6c60ec2e3458de8d76fe18d6eeb46f07ac7 (patch) | |
tree | 8d0e36635999da3ed5278ec20520c3eb29408b99 | |
parent | Updated link to the page of articles for a feed. (diff) | |
download | newspipe-13deb6c60ec2e3458de8d76fe18d6eeb46f07ac7.tar.gz newspipe-13deb6c60ec2e3458de8d76fe18d6eeb46f07ac7.tar.bz2 newspipe-13deb6c60ec2e3458de8d76fe18d6eeb46f07ac7.zip |
The list of inactive feeds is now sorted.
-rw-r--r-- | pyaggr3g470r/views/views.py | 1 |
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']) |