mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
fix tag update
This commit is contained in:
parent
3491a5e378
commit
7fc593a2ce
1 changed files with 3 additions and 3 deletions
|
@ -131,9 +131,9 @@ update fields set value = :v where factId = :fid and fieldModelId = :fmid""",
|
||||||
data)
|
data)
|
||||||
# update tags
|
# update tags
|
||||||
self.deck.updateProgress()
|
self.deck.updateProgress()
|
||||||
if tagsIdx:
|
if tagsIdx is not None:
|
||||||
data = [{'factId': fid,
|
data = [{'fid': fid,
|
||||||
'tags': c.fields[tagsIdx]}
|
't': c.fields[tagsIdx]}
|
||||||
for (fid, c) in upcards]
|
for (fid, c) in upcards]
|
||||||
self.deck.s.execute(
|
self.deck.s.execute(
|
||||||
"update facts set tags = :t where id = :fid",
|
"update facts set tags = :t where id = :fid",
|
||||||
|
|
Loading…
Reference in a new issue