chuni: bandaid fix for if a user or team is named 'true' or 'false', fixes #65
This commit is contained in:
parent
26cdc6c10f
commit
283cf41bce
@ -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":
|
||||||
|
Loading…
Reference in New Issue
Block a user