Rev3122, Auto ignore database file

This commit is contained in:
shortcutme 2017-10-22 11:13:09 +02:00
parent c519239d87
commit 9d511ba165
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
3 changed files with 10 additions and 1 deletions

View file

@ -34,6 +34,13 @@ class SiteStorage(object):
else:
raise Exception("Directory not exists: %s" % self.directory)
def getDbFile(self):
if self.isFile("dbschema.json"):
schema = self.loadJson("dbschema.json")
return schema["db_file"]
else:
return False
# Load db from dbschema.json
def openDb(self, check=True):
try: