mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix tags cards being added to all notes
This commit is contained in:
parent
2df2231dc5
commit
b9761ca109
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class TagManager(object):
|
|||
lim = " or ".join(
|
||||
[l+"like :_%d" % c for c, t in enumerate(newTags)])
|
||||
res = self.col.db.all(
|
||||
"select id, tags from notes where id in %s and %s" % (
|
||||
"select id, tags from notes where id in %s and (%s)" % (
|
||||
ids2str(ids), lim),
|
||||
**dict([("_%d" % x, '%% %s %%' % y)
|
||||
for x, y in enumerate(newTags)]))
|
||||
|
|
Loading…
Reference in a new issue