forked from Decentrala/website
Reverse archive page
This commit is contained in:
parent
1d20360c46
commit
828be8cd8f
1
prep.py
1
prep.py
@ -50,6 +50,7 @@ events = sorted(load_events("dogadjaji.csv"), key=lambda e: e["date"])
|
|||||||
today = datetime.today().date()
|
today = datetime.today().date()
|
||||||
|
|
||||||
past_events = list(filter(lambda e: e["date"] <= today, events))
|
past_events = list(filter(lambda e: e["date"] <= today, events))
|
||||||
|
past_events.reverse()
|
||||||
new_events = list(filter(lambda e: e["date"] >= today, events))
|
new_events = list(filter(lambda e: e["date"] >= today, events))
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user