!fixup date

This commit is contained in:
Ethan Paul 2021-04-25 00:26:49 -04:00
parent cb275ad95d
commit 0005836a95
No known key found for this signature in database
GPG Key ID: D0E2CBF1245E92BF

View File

@ -124,7 +124,7 @@ class ConfigSerializer(msh.Schema):
@msh.post_load
def _remove_future(self, data: Dict[str, Any], *args, **kwargs) -> PostContainer:
posts = [item for item in data["posts"] if item.date >= datetime.date.today()]
posts = [item for item in data["posts"] if item.date <= datetime.date.today()]
data["posts"] = posts
return data