Mark site as failed updating if query modifications failed

This commit is contained in:
HelloZeroNet 2016-03-18 19:18:59 +01:00
parent 0ccc81f46b
commit 2c4f582437
1 changed files with 6 additions and 0 deletions

View File

@ -282,6 +282,12 @@ class Site(object):
self.download()
self.settings["size"] = self.content_manager.getTotalSize() # Update site size
if len(queried) == 0:
# Failed to query modifications
self.content_updated = False
self.bad_files["content.json"] = 1
self.updateWebsocket(updated=True)
# Update site by redownload all content.json