parent
81d7d62620
commit
e56cf111e8
3 changed files with 68 additions and 10 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue