From 072546438865fc563fe017fc31f22dd6211c7403 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Thu, 15 Jun 2017 13:33:51 +0200 Subject: [PATCH] Fix database loading --- src/Db/Db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Db/Db.py b/src/Db/Db.py index 026a36c3..df73bde7 100644 --- a/src/Db/Db.py +++ b/src/Db/Db.py @@ -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():