From 283cf41bcebaf6f816947f745ff801a9d159a5f9 Mon Sep 17 00:00:00 2001 From: Kevin Trocolli Date: Sun, 10 Dec 2023 17:41:05 -0500 Subject: [PATCH] chuni: bandaid fix for if a user or team is named 'true' or 'false', fixes #65 --- core/data/schema/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/data/schema/base.py b/core/data/schema/base.py index a53392f..ef980e5 100644 --- a/core/data/schema/base.py +++ b/core/data/schema/base.py @@ -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":