Merge pull request #266 from binarin/python-3.7-fix

Fix searching for python 3.7
This commit is contained in:
Damien Elmes 2018-12-03 16:42:24 +10:00 committed by GitHub
commit dacf429b35
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -440,7 +440,7 @@ select distinct(n.id) from cards c, notes n where c.nid=n.id and """+preds
# nothing has that field
return
# gather nids
regex = re.escape(val).replace("_", ".").replace("\\%", ".*")
regex = re.escape(val).replace("_", ".").replace(re.escape("%"), ".*")
nids = []
for (id,mid,flds) in self.col.db.execute("""
select id, mid, flds from notes