fix(python): correct version author when changes exist. Fix Bug 73505

This commit is contained in:
sshakndr
2025-03-25 14:11:12 +07:00
parent 2447aaef12
commit ebd306d2b2

View File

@ -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)
# get the path to the changes.json file
changes = json.loads(readFile(getChangesHistoryPath(prevVerDir)))
change = changes['changes'][0]
change = changes['changes'][-1]
# write information about changes to the object
obj['changes'] = changes['changes'] if change else None
obj['serverVersion'] = changes['serverVersion']