python: fixed history path building

This commit is contained in:
Andrew
2022-02-14 12:41:37 +03:00
parent 08388f739c
commit 44eef53a03
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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