#11 Added defaults to every fetch of 'ENVIRON' to ensure a value is available

This commit is contained in:
2024-02-24 08:47:57 +00:00
parent 0434d85ddb
commit c5b60f22da
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ class DatabaseController(ABC):
__db_name = "wmgzon.db"
# Use test file if necessary
if os.environ.get("ENVIRON") == "test":
if os.environ.get("ENVIRON", "test") == "test":
__db_name = "test_" + __db_name
__sqlitefile = __data_dir + __db_name