From e4b5617e9231b1c2a2e680b629eb248140b824c4 Mon Sep 17 00:00:00 2001 From: jkmin3 Date: Mon, 1 Apr 2024 20:20:34 -0500 Subject: [PATCH] better handling for lists in inputs --- ai_ta_backend/flows.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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