Skip to content

Commit 7a99c78

Browse files
authored
fix: Processing for document export sheet with more than 32 characters (#2740)
1 parent a07df46 commit 7a99c78

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

apps/dataset/serializers/document_serializers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -703,6 +703,8 @@ def merge_problem(paragraph_list: List[Dict], problem_mapping_list: List[Dict],
703703

704704
@staticmethod
705705
def reset_document_name(document_name):
706+
if document_name is not None:
707+
document_name = document_name.strip()[0:29]
706708
if document_name is None or not Utils.valid_sheet_name(document_name):
707709
return "Sheet"
708710
return document_name.strip()

0 commit comments

Comments
 (0)