order by date;

Note that order is ascending, so that older items are added first to the
RSS feed.
This commit is contained in:
Benjamin Bouvier 2018-04-09 22:48:13 +02:00
parent cc4a6401f7
commit 7bc95f53fd

View File

@ -146,7 +146,7 @@ def by_feed_name(slug):
gen.link(href=feed.atom_id)
gen.description(feed.description)
for item in feed.items:
for item in feed.items.order_by(Item.date):
fe = gen.add_entry()
fe.id(item.atom_id)
fe.title(item.title)