Disable DB updating command line argument

This commit is contained in:
HelloZeroNet 2016-03-19 18:05:49 +01:00
parent 99f0407ba2
commit ae092dc757
2 changed files with 2 additions and 1 deletions

View file

@ -184,7 +184,7 @@ class SiteStorage:
# Reopen DB to check changes
self.closeDb()
self.openDb()
elif inner_path.endswith(".json") and self.has_db: # Load json file to db
elif not config.disable_db and inner_path.endswith(".json") and self.has_db: # Load json file to db
self.log.debug("Loading json file to db: %s" % inner_path)
try:
self.getDb().loadJson(file_path)