1
0
mirror of synced 2024-11-12 00:40:50 +01:00

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

This commit is contained in:
Kevin Trocolli 2023-12-10 17:41:05 -05:00
parent 26cdc6c10f
commit 283cf41bce

View File

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