Commit 29e96a08 authored by berumuron's avatar berumuron
Browse files

imp: Sort CSV export by date

parent 3495b723
...@@ -139,6 +139,7 @@ def export(): ...@@ -139,6 +139,7 @@ def export():
fieldnames=["titre", "date", "date de fin", "privé", "projet", "description"], fieldnames=["titre", "date", "date de fin", "privé", "projet", "description"],
) )
csv_writer.writeheader() csv_writer.writeheader()
events = sorted(events, key=lambda event:
for event in events: for event in events:
csv_writer.writerow( csv_writer.writerow(
{ {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment