fix: ignore config.json for service config

This commit is contained in:
2023-07-07 13:44:48 +02:00
parent 0d6e2aef7b
commit 876e3101c0

View File

@@ -313,7 +313,7 @@ def create_app():
elif os.path.isdir(app.config["JSON_CONFIG_DIR"]): elif os.path.isdir(app.config["JSON_CONFIG_DIR"]):
for fname in os.listdir(app.config["JSON_CONFIG_DIR"]): for fname in os.listdir(app.config["JSON_CONFIG_DIR"]):
fullpath = os.path.join(app.config["JSON_CONFIG_DIR"], fname) fullpath = os.path.join(app.config["JSON_CONFIG_DIR"], fname)
if fname.endswith(".json"): if fname.endswith(".json") and not fname == "config.json":
with open(fullpath) as f: with open(fullpath) as f:
config |= json.load(f) config |= json.load(f)