diff --git a/anki/models.py b/anki/models.py index a7e04d1af..a2320ad2a 100644 --- a/anki/models.py +++ b/anki/models.py @@ -60,7 +60,6 @@ defaultTemplate = { 'qfmt': "", 'afmt': "", 'did': None, - # added in beta 13 'bqfmt': "", 'bafmt': "", } diff --git a/anki/storage.py b/anki/storage.py index d60c25095..c1b74dff7 100644 --- a/anki/storage.py +++ b/anki/storage.py @@ -165,6 +165,11 @@ update cards set left = left + left*1000 where queue = 1""") del r['ivlfct'] r['maxIvl'] = 36500 col.decks.save(c) + for m in col.models.all(): + for t in m['tmpls']: + t['bqfmt'] = '' + t['bafmt'] = '' + col.models.save(m) col.db.execute("update col set ver = 11") def _upgradeClozeModel(col, m):