Skip to content

Commit a0d3031

Browse files
authored
fix: Unable to export dialogue log data due to error (#4298)
1 parent 2a15017 commit a0d3031

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/application/serializers/application_chat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def paragraph_list_to_string(paragraph_list):
151151
@staticmethod
152152
def to_row(row: Dict):
153153
details = row.get('details') or {}
154-
padding_problem_text = ' '.join(node.get("answer", "") for key, node in details.items() if
154+
padding_problem_text = ' '.join((node.get("answer", "") or "") for key, node in details.items() if
155155
node.get("type") == 'question-node')
156156
search_dataset_node_list = [(key, node) for key, node in details.items() if
157157
node.get("type") == 'search-dataset-node' or node.get(

0 commit comments

Comments
 (0)