diff --git a/ai_ta_backend/flows.py b/ai_ta_backend/flows.py index 4c79956f..70380ccc 100644 --- a/ai_ta_backend/flows.py +++ b/ai_ta_backend/flows.py @@ -141,7 +141,7 @@ def format_data(self, inputted, api_key: str, workflow_name): data[value['fieldLabel']] = field_name new_data = {} for k, v in inputted.items(): - if type(v) == list: + if isinstance(v, list): new_data[data[k]] = json.dumps(v) else: new_data[data[k]] = v