From a8f778c6f464ba0d28ee7fd215e6a8505b4d48a4 Mon Sep 17 00:00:00 2001 From: "thomas.woehlke" <thomas.woehlke@rub.de> Date: Thu, 25 Feb 2021 10:20:36 +0100 Subject: [PATCH] Default task --- requirements/build.in | 2 +- requirements/dev.in | 7 +++++-- src/database.py | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/requirements/build.in b/requirements/build.in index ef014254..13d3f583 100644 --- a/requirements/build.in +++ b/requirements/build.in @@ -10,4 +10,4 @@ pytoml==0.1.21 venv-run==0.1.0 six==1.13.0 pbr==3.1.1 -pre-commit +pre-commit \ No newline at end of file diff --git a/requirements/dev.in b/requirements/dev.in index cd577736..10922f4e 100644 --- a/requirements/dev.in +++ b/requirements/dev.in @@ -33,5 +33,8 @@ numpy>=1.20.1 pandas>=1.1.0 scipy>=1.5.0 StatisticalDiagrams>=20.5 -chardet==3.0.4 -pytz<2021.0,>=2020.1 +#chardet==3.0.4 +chardet==4.0.0 +pytz==2021.1 +ruaml-yaml==0.1.6.12 +identyfy==1.5.14 diff --git a/src/database.py b/src/database.py index 5eeb7e43..74958155 100644 --- a/src/database.py +++ b/src/database.py @@ -14,7 +14,6 @@ board = RedisBoardExtension() def create_app(): my_app = Flask('covid19') - dashboard.bind(my_app) CORS(my_app) Bootstrap(my_app) my_app.config.from_object("config") @@ -26,6 +25,7 @@ def create_app(): my_app.config['SQLALCHEMY_DATABASE_URI'] = db_url my_app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False # silence the deprecation warning my_app.config['FLASK_ADMIN_SWATCH'] = 'superhero' + #dashboard.bind(my_app) board.init_app(my_app) return my_app -- GitLab