From 6e859ad11250ae47b5bfa1e829b8ce4baf03faa0 Mon Sep 17 00:00:00 2001 From: sbcrumb Date: Fri, 17 Oct 2025 20:59:07 -0400 Subject: [PATCH] gd: fix --- VERSION | 2 +- config/settings.py | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 276cbf9..2bf1c1c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.0 +2.3.1 diff --git a/config/settings.py b/config/settings.py index fff5d28..c396957 100644 --- a/config/settings.py +++ b/config/settings.py @@ -62,6 +62,8 @@ class NFOGuardConfig: # Database self.db_type = os.environ.get("DB_TYPE", "sqlite").lower() self.db_path = Path(os.environ.get("DB_PATH", "/app/data/media_dates.db")) + print(f"DEBUG: DB_TYPE environment variable: {os.environ.get('DB_TYPE', 'NOT_SET')}") + print(f"DEBUG: Configured db_type: {self.db_type}") # PostgreSQL database settings if self.db_type == "postgresql": @@ -70,6 +72,9 @@ class NFOGuardConfig: self.db_name = os.environ.get("DB_NAME", "nfoguard") self.db_user = os.environ.get("DB_USER", "nfoguard") self.db_password = os.environ.get("DB_PASSWORD", "") + print(f"DEBUG: PostgreSQL config - host={self.db_host}, port={self.db_port}, db={self.db_name}, user={self.db_user}") + else: + print(f"DEBUG: Using SQLite config - path={self.db_path}") # External connections self._load_external_connections()