fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user