send posts oldest to newest

This commit is contained in:
yequari 2023-09-15 22:46:34 -07:00
parent 086b0d6d30
commit 6aca40a5e5
1 changed files with 1 additions and 0 deletions

View File

@ -90,6 +90,7 @@ if __name__ == "__main__":
update_rss_file(filename, args.feed_url)
root = parse_rss_file(filename)
posts = get_new_posts(last_updated, root)
posts.sort(key=lambda post: post.date)
LOGGER.info(f'found {len(posts)} new posts')
for post in posts: