Dont recalculate site size on owned site update

This commit is contained in:
shortcutme 2016-08-15 13:55:45 +02:00
parent 64febc7f61
commit 16ed55a745

View file

@ -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"})