diff --git a/web_view.py b/web_view.py index 99e5cf7..6141035 100755 --- a/web_view.py +++ b/web_view.py @@ -67,12 +67,12 @@ async def index() -> str: @app.route("/launches") -async def launch_list() -> str: +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 = await agenda.thespacedevs.get_launches(rocket_dir, limit=100) + rockets = agenda.thespacedevs.get_launches(rocket_dir, limit=100) return flask.render_template( "launches.html", rockets=rockets, now=now, get_country=agenda.get_country