aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-01-15 23:31:40 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-01-15 23:31:40 +0100
commit982bfb529ddb1a836708556823e4f8f24faa5691 (patch)
treed623701e5bdd46c07cd7746477fe885e55589bdf
parentMerged in jaesivsm/pyaggr3g470r/update/style (pull request #5) (diff)
downloadnewspipe-982bfb529ddb1a836708556823e4f8f24faa5691.tar.gz
newspipe-982bfb529ddb1a836708556823e4f8f24faa5691.tar.bz2
newspipe-982bfb529ddb1a836708556823e4f8f24faa5691.zip
Order feeds by title for the HTML export.
-rw-r--r--pyaggr3g470r/export.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyaggr3g470r/export.py b/pyaggr3g470r/export.py
index ccad3005..54b0be13 100644
--- a/pyaggr3g470r/export.py
+++ b/pyaggr3g470r/export.py
@@ -144,7 +144,7 @@ def export_html(user):
index = HTML_HEADER("News archive")
index += "<h1>List of feeds</h1>\n"
index += """<p>%s articles.</p>\n<ul>\n""" % (nb_articles,)
- for feed in user.feeds:
+ for feed in user.feeds.order_by(models.Feed.title):
# creates a folder for each stream
feed_folder = webzine_root + str(feed.id)
try:
bgstack15