mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 22:42:25 -04:00
refresh after add/remove tags, don't use comma
This commit is contained in:
parent
32c621de32
commit
9d16b89c7d
1 changed files with 3 additions and 1 deletions
|
@ -1551,7 +1551,7 @@ insert into cardTags
|
||||||
tmpTags = list(set(oldTags + newTags))
|
tmpTags = list(set(oldTags + newTags))
|
||||||
if tmpTags != oldTags:
|
if tmpTags != oldTags:
|
||||||
pending.append(
|
pending.append(
|
||||||
{'id': id, 'now': now, 'tags': ", ".join(tmpTags)})
|
{'id': id, 'now': now, 'tags': " ".join(tmpTags)})
|
||||||
self.s.statements("""
|
self.s.statements("""
|
||||||
update facts set
|
update facts set
|
||||||
tags = :tags,
|
tags = :tags,
|
||||||
|
@ -1566,6 +1566,7 @@ where id = :id""", pending)
|
||||||
self.updatePriorities(cardIds)
|
self.updatePriorities(cardIds)
|
||||||
self.flushMod()
|
self.flushMod()
|
||||||
self.finishProgress()
|
self.finishProgress()
|
||||||
|
self.refresh()
|
||||||
|
|
||||||
def deleteTags(self, ids, tags):
|
def deleteTags(self, ids, tags):
|
||||||
self.startProgress()
|
self.startProgress()
|
||||||
|
@ -1598,6 +1599,7 @@ where id = :id""", pending)
|
||||||
self.updatePriorities(cardIds)
|
self.updatePriorities(cardIds)
|
||||||
self.flushMod()
|
self.flushMod()
|
||||||
self.finishProgress()
|
self.finishProgress()
|
||||||
|
self.refresh()
|
||||||
|
|
||||||
# Find and replace
|
# Find and replace
|
||||||
##########################################################################
|
##########################################################################
|
||||||
|
|
Loading…
Reference in a new issue