Fix code for Python3.

This commit is contained in:
yohan 2024-06-21 17:54:30 +02:00
parent 1eb4ed9422
commit 72d93d280a

2
api.py
View File

@ -19,7 +19,7 @@ authorizations = {
} }
with open('./conf.yml') as conf: with open('./conf.yml') as conf:
yaml_conf = yaml.load(conf) yaml_conf = yaml.safe_load(conf)
flask_settings = yaml_conf.get("flask_settings") flask_settings = yaml_conf.get("flask_settings")
api_key = yaml_conf.get("api_key") api_key = yaml_conf.get("api_key")
if os.environ['FLASK_ENV'] == 'development': if os.environ['FLASK_ENV'] == 'development':