send posts oldest to newest
This commit is contained in:
		
							parent
							
								
									086b0d6d30
								
							
						
					
					
						commit
						6aca40a5e5
					
				| @ -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: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user