diff --git a/requirements/build.in b/requirements/build.in index ef014254944d214706772e4aa81965d55ecacc6f..13d3f583e0096cb190f261d2040c7a5564dfc988 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 cd5777362d3611f9486336ea2fb97cc707b1ae47..10922f4e2fbefd0c830fa0c7abc82f1cd4102340 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 5eeb7e43b821d211308e8bc1fbdafe715553d1d7..749581556614b0c3dcd9de9e5107d9754e4c6c5c 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