Skip to content

Commit

Permalink
better handling for lists in inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jkmin3 committed Apr 2, 2024
1 parent aa55828 commit e4b5617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ai_ta_backend/flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e4b5617

Please sign in to comment.