fix tags cards being added to all notes

This commit is contained in:
Damien Elmes 2012-05-05 01:15:58 +09:00
parent 2df2231dc5
commit b9761ca109

View file

@ -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)]))