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)
|
||||
# update tags
|
||||
self.deck.updateProgress()
|
||||
if tagsIdx:
|
||||
data = [{'factId': fid,
|
||||
'tags': c.fields[tagsIdx]}
|
||||
if tagsIdx is not None:
|
||||
data = [{'fid': fid,
|
||||
't': c.fields[tagsIdx]}
|
||||
for (fid, c) in upcards]
|
||||
self.deck.s.execute(
|
||||
"update facts set tags = :t where id = :fid",
|
||||
|
|
Loading…
Reference in a new issue