Check files in offline mode on update
This commit is contained in:
parent
c63215c992
commit
fce30baa12
1 changed files with 4 additions and 3 deletions
|
@ -453,6 +453,10 @@ class Site(object):
|
||||||
def update(self, announce=False, check_files=False, since=None):
|
def update(self, announce=False, check_files=False, since=None):
|
||||||
self.content_manager.loadContent("content.json", load_includes=False) # Reload content.json
|
self.content_manager.loadContent("content.json", load_includes=False) # Reload content.json
|
||||||
self.content_updated = None # Reset content updated time
|
self.content_updated = None # Reset content updated time
|
||||||
|
|
||||||
|
if check_files:
|
||||||
|
self.storage.updateBadFiles(quick_check=True) # Quick check and mark bad files based on file size
|
||||||
|
|
||||||
if not self.isServing():
|
if not self.isServing():
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
@ -470,9 +474,6 @@ class Site(object):
|
||||||
|
|
||||||
queried = self.checkModifications(since)
|
queried = self.checkModifications(since)
|
||||||
|
|
||||||
if check_files:
|
|
||||||
self.storage.updateBadFiles(quick_check=True) # Quick check and mark bad files based on file size
|
|
||||||
|
|
||||||
changed, deleted = self.content_manager.loadContent("content.json", load_includes=False)
|
changed, deleted = self.content_manager.loadContent("content.json", load_includes=False)
|
||||||
|
|
||||||
if self.bad_files:
|
if self.bad_files:
|
||||||
|
|
Loading…
Reference in a new issue