Dont recalculate site size on owned site update
This commit is contained in:
parent
64febc7f61
commit
16ed55a745
1 changed files with 0 additions and 2 deletions
|
@ -87,8 +87,6 @@ class FileRequest(object):
|
||||||
(self.connection.ip, site.address, params["inner_path"])
|
(self.connection.ip, site.address, params["inner_path"])
|
||||||
)
|
)
|
||||||
changed, deleted = site.content_manager.loadContent(params["inner_path"], add_bad_files=False)
|
changed, deleted = site.content_manager.loadContent(params["inner_path"], add_bad_files=False)
|
||||||
if changed or deleted: # Content.json changed locally
|
|
||||||
site.settings["size"] = site.content_manager.getTotalSize() # Update site size
|
|
||||||
|
|
||||||
if not params["inner_path"].endswith("content.json"):
|
if not params["inner_path"].endswith("content.json"):
|
||||||
self.response({"error": "Only content.json update allowed"})
|
self.response({"error": "Only content.json update allowed"})
|
||||||
|
|
Loading…
Reference in a new issue