Fix typo on optional file deletion

This commit is contained in:
shortcutme 2018-10-15 13:15:11 +02:00
parent 46535cc7a8
commit 171e5d3766
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ class ContentManager(object):
self.optionalDelete(file_inner_path)
old_hash = old_content["files_optional"][file_relative_path].get("sha512")
if self.hashfield.hasHash(old_hash):
old_hash_id = self.hashField.getHashid(old_hash)
old_hash_id = self.hashfield.getHashId(old_hash)
self.optionalRemoved(file_inner_path, old_hash_id, old_content["files_optional"][file_relative_path]["size"])
else:
self.site.storage.delete(file_inner_path)