Add option verify_files to Site.update() to allow the real content verification check, not just the simple file size-based one
Add more informative updateWebsocket() notification in Site.update() and SiteStorage.verifyFiles()
This commit is contained in:
parent
75bba6ca1a
commit
5ec970adb8
3 changed files with 52 additions and 10 deletions
|
@ -912,9 +912,9 @@ class UiWebsocket(object):
|
|||
self.response(to, "ok")
|
||||
|
||||
# Update site content.json
|
||||
def actionSiteUpdate(self, to, address, check_files=False, since=None, announce=False):
|
||||
def actionSiteUpdate(self, to, address, check_files=False, verify_files=False, since=None, announce=False):
|
||||
def updateThread():
|
||||
site.update(announce=announce, check_files=check_files, since=since)
|
||||
site.update(announce=announce, check_files=check_files, verify_files=verify_files, since=since)
|
||||
self.response(to, "Updated")
|
||||
|
||||
site = self.server.sites.get(address)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue