From 7e4f18fe52de7b1b65586683cb3cc2620329cd84 Mon Sep 17 00:00:00 2001 From: Anry Das Date: Sat, 1 Nov 2025 09:42:58 +0200 Subject: [PATCH] Corrected config_file.py --- app_config.py | 2 +- config_file.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app_config.py b/app_config.py index c676091..381610f 100644 --- a/app_config.py +++ b/app_config.py @@ -14,7 +14,7 @@ IS_DEBUG = False IS_DOCS_AVAILABLE = False def read_app_config(): - j, _ = read_cfg(CONFIG_FILE_NAME) + j = read_cfg(CONFIG_FILE_NAME) return j def get_config_value(cfg, section, key, default): diff --git a/config_file.py b/config_file.py index 0b65fa3..da87812 100755 --- a/config_file.py +++ b/config_file.py @@ -7,11 +7,11 @@ def read_config(name): raise Exception(f"File {name} doesn't exists") filename, ext = os.path.splitext(name) if 'json' in ext: - return read_json(name), os.path.getmtime(name) + return read_json(name) elif 'properties' in ext: - return read_prop(name), os.path.getmtime(name) + return read_prop(name) elif 'yaml' in ext or 'yml' in ext: - return read_yaml(name), os.path.getmtime(name) + return read_yaml(name) else: raise Exception("Wrong file type")