Fix database loading
This commit is contained in:
parent
f506ac9701
commit
0725464388
1 changed files with 2 additions and 0 deletions
|
@ -225,6 +225,8 @@ class Db(object):
|
|||
def updateJson(self, file_path, file=None, cur=None):
|
||||
if not file_path.startswith(self.db_dir):
|
||||
return False # Not from the db dir: Skipping
|
||||
relative_path = file_path[len(self.db_dir):] # File path realative to db file
|
||||
|
||||
# Check if filename matches any of mappings in schema
|
||||
matched_maps = []
|
||||
for match, map_settings in self.schema["maps"].items():
|
||||
|
|
Loading…
Reference in a new issue