mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 14:02:24 +01:00
Feeds: Fix sort order
This commit is contained in:
parent
b741cc592f
commit
aedeef4e02
@ -102,6 +102,7 @@ def _get_all_feed(feed_url: str):
|
||||
releases = _get_releases_feed(PackageRelease.query, "")["items"]
|
||||
packages = _get_new_packages_feed("")["items"]
|
||||
items = releases + packages
|
||||
items.sort(reverse=True, key=lambda x: x["date_published"])
|
||||
|
||||
return _make_feed(gettext("ContentDB all"), feed_url, items)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user