mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
fix: Processing for document export sheet with more than 32 characters (#2740)
This commit is contained in:
parent
a07df46f9d
commit
7a99c78840
|
|
@ -703,6 +703,8 @@ class DocumentSerializers(ApiMixin, serializers.Serializer):
|
|||
|
||||
@staticmethod
|
||||
def reset_document_name(document_name):
|
||||
if document_name is not None:
|
||||
document_name = document_name.strip()[0:29]
|
||||
if document_name is None or not Utils.valid_sheet_name(document_name):
|
||||
return "Sheet"
|
||||
return document_name.strip()
|
||||
|
|
|
|||
Loading…
Reference in New Issue