chuni: bandaid fix for if a user or team is named 'true' or 'false', fixes #65

This commit is contained in:
Hay1tsme 2023-12-10 17:41:05 -05:00
parent 26cdc6c10f
commit 283cf41bce
1 changed files with 2 additions and 0 deletions

View File

@ -157,6 +157,8 @@ class BaseData:
def fix_bools(self, data: Dict) -> Dict:
for k, v in data.items():
if k == "userName" or k == "teamName":
continue
if type(v) == str and v.lower() == "true":
data[k] = True
elif type(v) == str and v.lower() == "false":