Pass now to get_data()

This commit is contained in:
Edward Betts 2023-10-06 22:23:34 +01:00
parent aa0ac49152
commit 9f3042d72e

View file

@ -15,9 +15,9 @@ app.debug = True
@app.route("/") @app.route("/")
def index() -> str: def index() -> str:
"""Index page.""" """Index page."""
data = get_data()
now = datetime.now() now = datetime.now()
today = now.date() today = now.date()
data = get_data(now)
now_utc = datetime.now(timezone.utc) now_utc = datetime.now(timezone.utc)
def days_hours(when: datetime) -> str: def days_hours(when: datetime) -> str: