Fix get_data method to correctly check keys in ConfigManager data structure

This commit is contained in:
Gustavo Henrique Santos Souza de Miranda
2025-10-31 17:52:10 -03:00
parent 46387123bc
commit c35b700e06
+1 -1
View File
@@ -64,7 +64,7 @@ class ConfigManager(metaclass=SingletonMeta):
tomli_w.dump(self.__data, f)
def get_data(self,key):
if key in self.__data.items():
if key in self.__data.keys():
return {key:self.__data[key]}
else:
return None