Fix updateHashfield optional file detection

This commit is contained in:
shortcutme 2018-10-15 12:59:28 +02:00
parent f74ddc1010
commit 6b2f619096
No known key found for this signature in database
GPG Key ID: 5B63BAE6CB9613AE
1 changed files with 1 additions and 1 deletions

View File

@ -967,7 +967,7 @@ class Site(object):
# Update hashfield
def updateHashfield(self, limit=5):
# Return if no optional files
if not self.content_manager.hashfield and not self.content_manager.contents.get("content.json", {}).get("files_optional"):
if not self.content_manager.hashfield and not self.content_manager.has_optional_files:
return False
s = time.time()