December events #22
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