mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 00:36:38 -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
|
break
|
||||||
# add the new field
|
# add the new field
|
||||||
f = col.models.newField(fld)
|
f = col.models.newField(fld)
|
||||||
|
f['qsize'] = 20
|
||||||
|
f['qcol'] = '#000'
|
||||||
col.models.addField(m, f)
|
col.models.addField(m, f)
|
||||||
# loop through notes and write reference into new field
|
# loop through notes and write reference into new field
|
||||||
data = []
|
data = []
|
||||||
|
|
Loading…
Reference in a new issue