Pass now to get_data()
This commit is contained in:
parent
aa0ac49152
commit
9f3042d72e
|
@ -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:
|
||||||
|
|
Loading…
Reference in a new issue