#11 Added defaults to every fetch of 'ENVIRON' to ensure a value is available
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user