Ability to skip check files on update
This commit is contained in:
parent
2c4f582437
commit
a692640e46
1 changed files with 3 additions and 2 deletions
|
@ -264,7 +264,7 @@ class Site(object):
|
|||
# Update content.json from peers and download changed files
|
||||
# Return: None
|
||||
@util.Noparallel()
|
||||
def update(self, announce=False):
|
||||
def update(self, announce=False, check_files=True):
|
||||
self.content_manager.loadContent("content.json") # Reload content.json
|
||||
self.content_updated = None # Reset content updated time
|
||||
self.updateWebsocket(updating=True)
|
||||
|
@ -273,6 +273,7 @@ class Site(object):
|
|||
|
||||
queried = self.checkModifications()
|
||||
|
||||
if check_files:
|
||||
self.storage.checkFiles(quick_check=True) # Quick check and mark bad files based on file size
|
||||
|
||||
changed, deleted = self.content_manager.loadContent("content.json")
|
||||
|
|
Loading…
Reference in a new issue