order by date;
Note that order is ascending, so that older items are added first to the RSS feed.
This commit is contained in:
parent
cc4a6401f7
commit
7bc95f53fd
2
main.py
2
main.py
@ -146,7 +146,7 @@ def by_feed_name(slug):
|
|||||||
gen.link(href=feed.atom_id)
|
gen.link(href=feed.atom_id)
|
||||||
gen.description(feed.description)
|
gen.description(feed.description)
|
||||||
|
|
||||||
for item in feed.items:
|
for item in feed.items.order_by(Item.date):
|
||||||
fe = gen.add_entry()
|
fe = gen.add_entry()
|
||||||
fe.id(item.atom_id)
|
fe.id(item.atom_id)
|
||||||
fe.title(item.title)
|
fe.title(item.title)
|
||||||
|
Loading…
Reference in New Issue
Block a user