mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
fix include&exclude tags case
This commit is contained in:
parent
0a9c498cbd
commit
3d5a427f85
1 changed files with 2 additions and 1 deletions
|
@ -240,7 +240,8 @@ class Deck(object):
|
|||
return sql.replace(
|
||||
"where",
|
||||
"where +c.id in (select cardId from cardTags where "
|
||||
"tagId in %s and tagId not in %s) and" % (
|
||||
"tagId in %s) and +c.id not in (select cardId from "
|
||||
"cardTags where tagId in %s) and" % (
|
||||
ids2str(yids),
|
||||
ids2str(nids)))
|
||||
elif no:
|
||||
|
|
Loading…
Reference in a new issue