fix include&exclude tags case

This commit is contained in:
Damien Elmes 2011-01-14 23:08:09 +09:00
parent 0a9c498cbd
commit 3d5a427f85

View file

@ -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: