Sort feeds after when added instead of alphabetical

This commit is contained in:
2022-12-10 23:55:07 +01:00
parent 6b40bca0a3
commit 6a4ae2aba8

View File

@ -192,8 +192,8 @@ def make_context_index(request) -> dict:
hook = reader.get_tag(feed.url, "webhook") hook = reader.get_tag(feed.url, "webhook")
feed_list.append({"feed": feed, "webhook": hook}) feed_list.append({"feed": feed, "webhook": hook})
# Sort feed_list by feed url # Sort feed_list by when the feed was added.
feed_list.sort(key=lambda x: x["feed"].url) feed_list.sort(key=lambda x: x["feed"].added)
feed_count: FeedCounts = reader.get_feed_counts() feed_count: FeedCounts = reader.get_feed_counts()
entry_count: EntryCounts = reader.get_entry_counts() entry_count: EntryCounts = reader.get_entry_counts()