mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 15:02:21 -04:00
Use double quotes in taglimit queries
This commit is contained in:
parent
ef79f7d676
commit
bfdb5d01b5
1 changed files with 2 additions and 2 deletions
|
@ -93,12 +93,12 @@ class TagLimit(QDialog):
|
||||||
if yes:
|
if yes:
|
||||||
arr = []
|
arr = []
|
||||||
for req in yes:
|
for req in yes:
|
||||||
arr.append("tag:'%s'" % req)
|
arr.append('tag:"%s"' % req)
|
||||||
self.tags += "(" + " or ".join(arr) + ")"
|
self.tags += "(" + " or ".join(arr) + ")"
|
||||||
if no:
|
if no:
|
||||||
arr = []
|
arr = []
|
||||||
for req in no:
|
for req in no:
|
||||||
arr.append("-tag:'%s'" % req)
|
arr.append('-tag:"%s"' % req)
|
||||||
self.tags += " " + " ".join(arr)
|
self.tags += " " + " ".join(arr)
|
||||||
saveGeom(self, "tagLimit")
|
saveGeom(self, "tagLimit")
|
||||||
QDialog.accept(self)
|
QDialog.accept(self)
|
||||||
|
|
Loading…
Reference in a new issue