From ee4f13c6dd99beabeba4c6adaadabcdb3c7af0fb Mon Sep 17 00:00:00 2001 From: KF7EEL Date: Fri, 24 Sep 2021 05:00:42 -0700 Subject: [PATCH] update requirements and WSGI --- web/app.py | 4 ++-- web/requirements.txt | 1 + web/wsgi.py | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/web/app.py b/web/app.py index 23c7dd4..56d8429 100644 --- a/web/app.py +++ b/web/app.py @@ -132,7 +132,7 @@ class ConfigClass(object): # Setup Flask-User -def create_app(): +def hbnet_web_service(): """ Flask application factory """ # Create Flask app load app.config @@ -6086,5 +6086,5 @@ TG #: ''' + str(tg_d.tg) + ''' if __name__ == '__main__': - app = create_app() + app = hbnet_web_service() app.run(debug = True, port=hws_port, host=hws_host) diff --git a/web/requirements.txt b/web/requirements.txt index f3df138..51b59ef 100644 --- a/web/requirements.txt +++ b/web/requirements.txt @@ -10,3 +10,4 @@ requests libscrc dmr_utils3 cryptography +wsgi diff --git a/web/wsgi.py b/web/wsgi.py index 3dfb2cc..fed8728 100644 --- a/web/wsgi.py +++ b/web/wsgi.py @@ -1,6 +1,6 @@ from app import create_app -app = create_app() +app = hbnet_web_service() if __name__ == "__main__":