!fixup date
This commit is contained in:
parent
cb275ad95d
commit
0005836a95
2
build.py
2
build.py
@ -124,7 +124,7 @@ class ConfigSerializer(msh.Schema):
|
|||||||
|
|
||||||
@msh.post_load
|
@msh.post_load
|
||||||
def _remove_future(self, data: Dict[str, Any], *args, **kwargs) -> PostContainer:
|
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
|
data["posts"] = posts
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user