From 876e3101c0404979e9b293df3bba95ccba4fbf74 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Fri, 7 Jul 2023 13:44:48 +0200 Subject: [PATCH] fix: ignore config.json for service config --- server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.py b/server.py index 26e116c..611752e 100755 --- a/server.py +++ b/server.py @@ -313,7 +313,7 @@ def create_app(): elif os.path.isdir(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) - if fname.endswith(".json"): + if fname.endswith(".json") and not fname == "config.json": with open(fullpath) as f: config |= json.load(f)