Rev2105, Fix database updating when path contains special characters
This commit is contained in:
parent
1f83b6691b
commit
97b3563e6b
2 changed files with 1 additions and 2 deletions
|
@ -10,7 +10,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.5.5"
|
||||
self.rev = 2103
|
||||
self.rev = 2105
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -225,7 +225,6 @@ 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 = re.sub("^%s" % self.db_dir, "", file_path) # 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