mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
or might cause issue for 0 value in config, replacing it with ternary statement
This commit is contained in:
parent
639df8ce5b
commit
ee511e2c81
@ -107,7 +107,7 @@ class config:
|
|||||||
:param default: default value to return if key is not found
|
:param default: default value to return if key is not found
|
||||||
:return: config value
|
:return: config value
|
||||||
"""
|
"""
|
||||||
return config._instance[key] or default
|
return default if config._instance[key] is None else config._instance[key]
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def set(key, value, save=True):
|
def set(key, value, save=True):
|
||||||
|
Loading…
Reference in New Issue
Block a user