mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 16:26:40 -04:00
fix upgrading of decks with extra media fields
This commit is contained in:
parent
7b53facc4c
commit
3449abe8a0
1 changed files with 2 additions and 0 deletions
|
@ -522,6 +522,8 @@ order by ordinal""", mid)):
|
|||
break
|
||||
# add the new field
|
||||
f = col.models.newField(fld)
|
||||
f['qsize'] = 20
|
||||
f['qcol'] = '#000'
|
||||
col.models.addField(m, f)
|
||||
# loop through notes and write reference into new field
|
||||
data = []
|
||||
|
|
Loading…
Reference in a new issue