Skip to content
Snippets Groups Projects
Commit f91407ba authored by Pete Pedersen's avatar Pete Pedersen
Browse files

DEV-153change the config for nomad secrets....

parent fea8ddfa
No related branches found
No related tags found
No related merge requests found
app.py 0 → 120000
sq_webapp.py
\ No newline at end of file
......@@ -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
......@@ -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 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment