Check files in offline mode on update

This commit is contained in:
shortcutme 2019-05-30 04:28:09 +02:00
parent c63215c992
commit fce30baa12
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 4 additions and 3 deletions

View File

@ -453,6 +453,10 @@ class Site(object):
def update(self, announce=False, check_files=False, since=None):
self.content_manager.loadContent("content.json", load_includes=False) # Reload content.json
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():
return False
@ -470,9 +474,6 @@ class Site(object):
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)
if self.bad_files: