diff --git a/app.py b/app.py new file mode 120000 index 0000000000000000000000000000000000000000..3a48e619293f35c44a52a7164ad74c69380828fe --- /dev/null +++ b/app.py @@ -0,0 +1 @@ +sq_webapp.py \ No newline at end of file diff --git a/config.py b/config.py index 4d05694b1899fadbef68cf638c668587fe6cd953..b17d4556095eec00dd7db6b3e1012855b36d6955 100644 --- a/config.py +++ b/config.py @@ -4,6 +4,7 @@ print(f"DEBUG: config {basedir}") class Config(object): SQLALCHEMY_TRACK_MODIFICATIONS = False + INIT_LOCATION = '/secrete/config.ini' # this is a test diff --git a/webapp/routes.py b/webapp/routes.py index 3cf83ac2e2fae07d98aa1489defcf30e32bc7550..85aa1ee153a5901d5cf927a7e67cac8e78d0a5c0 100644 --- a/webapp/routes.py +++ b/webapp/routes.py @@ -12,7 +12,7 @@ conf = config.Config() @app.route('/index') def index(): try: - return Response(json.dumps(filter_data(fetch_data(),12 )), status=200 ) + return Response(json.dumps(filter_data(fetch_data(conf.INIT_LOCATION),12 )), status=200 ) except: return Response('Wea have a problem', status=500) return filter_data(fetch_data(),12 )