fix: Unable to export dialogue log data due to error (#4298)

This commit is contained in:
shaohuzhang1 2025-10-31 14:00:06 +08:00 committed by GitHub
parent 2a15017523
commit a0d3031b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -151,7 +151,7 @@ class ApplicationChatQuerySerializers(serializers.Serializer):
@staticmethod
def to_row(row: Dict):
details = row.get('details') or {}
padding_problem_text = ' '.join(node.get("answer", "") for key, node in details.items() if
padding_problem_text = ' '.join((node.get("answer", "") or "") for key, node in details.items() if
node.get("type") == 'question-node')
search_dataset_node_list = [(key, node) for key, node in details.items() if
node.get("type") == 'search-dataset-node' or node.get(