!fixup date

This commit is contained in:
2021-04-25 00:26:49 -04:00
parent cb275ad95d
commit 0005836a95

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