or might cause issue for 0 value in config, replacing it with ternary statement

This commit is contained in:
Adam Saudagar 2021-04-07 13:09:15 +05:30
parent 639df8ce5b
commit ee511e2c81

View File

@ -107,7 +107,7 @@ class config:
:param default: default value to return if key is not found
:return: config value
"""
return config._instance[key] or default
return default if config._instance[key] is None else config._instance[key]
@staticmethod
def set(key, value, save=True):