Skip to content

Commit

Permalink
Check files in offline mode on update
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed May 30, 2019
1 parent c63215c commit fce30ba
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Site/Site.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,10 @@ def checkModifications(self, 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_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

Expand All @@ -470,9 +474,6 @@ def update(self, announce=False, check_files=False, since=None):

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:
Expand Down

0 comments on commit fce30ba

Please sign in to comment.