Compare commits

...

2 commits

Author SHA1 Message Date
Edward Betts 533c7767e8 Merge branch 'main' of https://git.4angle.com/edward/agenda 2024-01-21 15:56:22 +00:00
Edward Betts ac32b4fe89 Bug fix 2024-01-21 15:56:18 +00:00

View file

@ -70,12 +70,12 @@ async def index() -> str:
@app.route("/launches") @app.route("/launches")
async def launch_list() -> str: def launch_list() -> str:
"""Web page showing List of space launches.""" """Web page showing List of space launches."""
now = datetime.now() now = datetime.now()
data_dir = app.config["DATA_DIR"] data_dir = app.config["DATA_DIR"]
rocket_dir = os.path.join(data_dir, "thespacedevs") rocket_dir = os.path.join(data_dir, "thespacedevs")
rockets = await agenda.thespacedevs.get_launches(rocket_dir, limit=100) rockets = agenda.thespacedevs.get_launches(rocket_dir, limit=100)
return flask.render_template( return flask.render_template(
"launches.html", rockets=rockets, now=now, get_country=agenda.get_country "launches.html", rockets=rockets, now=now, get_country=agenda.get_country