mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
fix(python): correct version author when changes exist. Fix Bug 73505
This commit is contained in:
@ -195,7 +195,7 @@ def getHistoryObject(storagePath, filename, docKey, docUrl, isEnableDirectUrl, r
|
|||||||
if i > 1: # check if the version number is greater than 1 (the file was modified)
|
if i > 1: # check if the version number is greater than 1 (the file was modified)
|
||||||
# get the path to the changes.json file
|
# get the path to the changes.json file
|
||||||
changes = json.loads(readFile(getChangesHistoryPath(prevVerDir)))
|
changes = json.loads(readFile(getChangesHistoryPath(prevVerDir)))
|
||||||
change = changes['changes'][0]
|
change = changes['changes'][-1]
|
||||||
# write information about changes to the object
|
# write information about changes to the object
|
||||||
obj['changes'] = changes['changes'] if change else None
|
obj['changes'] = changes['changes'] if change else None
|
||||||
obj['serverVersion'] = changes['serverVersion']
|
obj['serverVersion'] = changes['serverVersion']
|
||||||
|
|||||||
Reference in New Issue
Block a user