mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
python: fixed history path building
This commit is contained in:
@ -172,7 +172,7 @@ def getRootFolder(req):
|
||||
return directory
|
||||
|
||||
# get the file history path
|
||||
def getHistoryPath(filename, userAddress, file, version, req):
|
||||
def getHistoryPath(filename, file, version, req):
|
||||
if isinstance(req, str):
|
||||
curAdr = req
|
||||
else:
|
||||
|
||||
@ -406,7 +406,7 @@ def downloadhistory(request):
|
||||
else:
|
||||
return HttpResponse('JWT validation failed', status=403)
|
||||
|
||||
filePath = docManager.getHistoryPath(fileName, userAddress, file, version, request)
|
||||
filePath = docManager.getHistoryPath(fileName, file, version, userAddress)
|
||||
|
||||
response = docManager.download(filePath) # download this file
|
||||
return response
|
||||
|
||||
Reference in New Issue
Block a user