Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
nupellot authored Mar 11, 2023
1 parent 5ae5a1a commit 3d4066b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
app.register_blueprint(blueprint_ward, url_prefix='/ward')


app.config['db_config'] = json.load(open('configs/db.json'))
app.config['db_config'] = json.load(open('configs/db.json'));
app.config['db_config']['password'] = os.getenv('MYSQLPASSWORD');
app.config['access_config'] = json.load(open('configs/access.json'))
app.config['cache_config'] = json.load(open('configs/cache.json'))

Expand Down Expand Up @@ -196,4 +197,4 @@ def exit_func():
if __name__ == '__main__':
# app = add_blueprint_access_handler(app, ['blueprint_report'], group_required)
# app = add_blueprint_access_handler(app, ['blueprint_market'], external_required)
app.run(host='0.0.0.0', port=5002, debug=True)
app.run(host='0.0.0.0', port=5002, debug=True)

0 comments on commit 3d4066b

Please sign in to comment.