diff options
author | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-01 16:59:27 +0100 |
---|---|---|
committer | Cédric Bonhomme <kimble.mandel@gmail.com> | 2013-11-01 16:59:27 +0100 |
commit | cd5acda0300193a80a96bef687f0403417ad42ee (patch) | |
tree | afed3d0014e0c58921b6030ffe47e7ab73097673 /pyaggr3g470r/views.py | |
parent | no reverse (diff) | |
download | newspipe-cd5acda0300193a80a96bef687f0403417ad42ee.tar.gz newspipe-cd5acda0300193a80a96bef687f0403417ad42ee.tar.bz2 newspipe-cd5acda0300193a80a96bef687f0403417ad42ee.zip |
Improved sort of feeds.
Diffstat (limited to 'pyaggr3g470r/views.py')
-rw-r--r-- | pyaggr3g470r/views.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pyaggr3g470r/views.py b/pyaggr3g470r/views.py index 9c816990..0d6fcf21 100644 --- a/pyaggr3g470r/views.py +++ b/pyaggr3g470r/views.py @@ -175,6 +175,7 @@ def add_feed(): new_feed = models.Feed(title=form.title.data, link=form.link.data, site_link=form.site_link.data) user.feeds.append(new_feed) + user.feeds = sorted(user.feeds, key=lambda t: t.title.lower()) user.save() return redirect(url_for('home')) return render_template('management.html', form=form)
\ No newline at end of file |