Fix `get_data` method to correctly check keys in `ConfigManager` data structure
This commit is contained in:
parent
46387123bc
commit
c35b700e06
|
|
@ -64,7 +64,7 @@ class ConfigManager(metaclass=SingletonMeta):
|
||||||
tomli_w.dump(self.__data, f)
|
tomli_w.dump(self.__data, f)
|
||||||
|
|
||||||
def get_data(self,key):
|
def get_data(self,key):
|
||||||
if key in self.__data.items():
|
if key in self.__data.keys():
|
||||||
return {key:self.__data[key]}
|
return {key:self.__data[key]}
|
||||||
else:
|
else:
|
||||||
return None
|
return None
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue