This commit is contained in:
2025-05-07 20:52:37 +10:00
parent e7a06e3375
commit 4adaa3442c
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -143,7 +143,7 @@ def load_recent_posts():
if not all(key in post for key in required_fields):
logging.warning(f"Skipping invalid post: missing fields {post}")
continue
datetime.fromisoformat(post["timestamp"])
datetime.fromisoformat(post["timestamp"].replace('Z', '+00:00'))
key = (post["title"], post["url"], post["author_username"])
if key not in unique_posts:
unique_posts[key] = post