Events are sorted by date

Closes: #16
This commit is contained in:
Edward Betts 2023-10-05 11:07:01 +01:00
parent 81d7d62620
commit e56cf111e8
3 changed files with 68 additions and 10 deletions

View file

@ -25,7 +25,7 @@ def index() -> str:
return f"{delta.days:>5,d} days {delta.seconds // 3600:>2.0f} hours"
def days(when: date) -> str:
return " today" if when == today else f"{(when - today).days:>5,d} days"
return "today" if when == today else f"{(when - today).days:,d} days"
return render_template("index.html", days=days, days_hours=days_hours, **data)