From 17400180eeb071e8541c9e507ff79ffee65c1da7 Mon Sep 17 00:00:00 2001 From: cl117 Date: Tue, 10 Sep 2024 18:11:32 -0600 Subject: [PATCH] update python to 3.10 Flast to 3 --- flask/explorer.py | 2 +- flask/requirements.txt | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/flask/explorer.py b/flask/explorer.py index a2a3660..d32129f 100644 --- a/flask/explorer.py +++ b/flask/explorer.py @@ -38,7 +38,7 @@ def handle_error(e): return jsonify(error=str(e.name + ": " + e.description)), e.code return jsonify(error=str(type(e).__name__) + str(e)), 500 -@app.before_first_request +@app.before_request def startup(): def auto_update_index(): update_interval = int(config_manager.load_config().get('updateTimeInDays', 0)) * 86400 diff --git a/flask/requirements.txt b/flask/requirements.txt index 0ebff0e..828e708 100644 --- a/flask/requirements.txt +++ b/flask/requirements.txt @@ -1,18 +1,18 @@ certifi==2018.4.16 chardet==3.0.4 -click==6.7 +click==8.1.7 elasticsearch==6.3.0 elasticsearch-dsl==6.1.0 -Flask==1.0.2 +Flask==3.0.3 idna==2.7 ipaddress==1.0.22 -itsdangerous==0.24 -Jinja2 -MarkupSafe==2.0.1 -numpy +itsdangerous==2.2.0 +Jinja2==3.1.4 +MarkupSafe==2.1.5 +numpy==2.1.1 python-dateutil==2.7.3 requests==2.19.1 six==1.11.0 urllib3==1.23 -Werkzeug +Werkzeug==3.0.4 apscheduler==3.10.4