From 6894ee4c42456fd425a9c1d8c3863dd1e505f767 Mon Sep 17 00:00:00 2001 From: Srinivas Gorur-Shandilya Date: Thu, 14 Nov 2024 14:15:32 -0500 Subject: [PATCH] fix: fixed more type mismatch issues --- src/data_hub/api.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/data_hub/api.py b/src/data_hub/api.py index adaf935..a1a20aa 100644 --- a/src/data_hub/api.py +++ b/src/data_hub/api.py @@ -1146,7 +1146,12 @@ def _row_to_dict( value = value.file_ids file_ids.extend(value) elif field.type == "expression": - value = field.value.result + value = field.value + if isinstance(value, dict): + value = value["result"] + else: + value = value.result + elif field.type == "user": value = field.value if isinstance(value, dict):