1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 06:34:40 +00:00

create sdoc gen doc_uuid (#5886)

This commit is contained in:
欢乐马
2024-01-15 17:48:10 +08:00
committed by GitHub
parent 71ee501222
commit 842d2acb26

View File

@@ -279,6 +279,10 @@ class FileView(APIView):
new_file_path = posixpath.join(parent_dir, new_file_name)
file_info = self.get_file_info(username, repo_id, new_file_path)
# gen doc_uuid
if new_file_name.endswith('.sdoc'):
doc_uuid = get_seadoc_file_uuid(repo, new_file_path)
file_info['doc_uuid'] = doc_uuid
return Response(file_info)
if operation == 'rename':