Don't update site in offline mode

This commit is contained in:
shortcutme 2019-04-15 15:48:16 +02:00
parent 235b8f359c
commit f414f0746c
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -453,6 +453,9 @@ 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 not self.isServing():
return False
self.updateWebsocket(updating=True)
# Remove files that no longer in content.json