Compare commits

..

No commits in common. "533c7767e85b64bc49830652a6d5299be97c3cf9" and "2b89ff7ff9268d863a6fc5a53e95bd14f160b58d" have entirely different histories.

View file

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