mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
failure to find a field should not break entire query
https://anki.tenderapp.com/discussions/ankidesktop/656-unexpected-results-on-search-with-boolean-or-operator
This commit is contained in:
parent
fc2c772115
commit
b571a4caa8
1 changed files with 1 additions and 1 deletions
|
@ -429,7 +429,7 @@ where mid in %s and flds like ? escape '\\'""" % (
|
|||
except sre_constants.error:
|
||||
return
|
||||
if not nids:
|
||||
return
|
||||
return "0"
|
||||
return "n.id in %s" % ids2str(nids)
|
||||
|
||||
# Find and replace
|
||||
|
|
Loading…
Reference in a new issue