mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
fix custom study not saving
This commit is contained in:
parent
0bf4fe400a
commit
cecf363c38
1 changed files with 1 additions and 0 deletions
|
@ -183,6 +183,7 @@ class CustomStudy(QDialog):
|
||||||
dyn["terms"][0] = [(terms + tags).strip(), spin, ord]
|
dyn["terms"][0] = [(terms + tags).strip(), spin, ord]
|
||||||
# add deck limit
|
# add deck limit
|
||||||
dyn["terms"][0][0] = 'deck:"%s" %s ' % (self.deck["name"], dyn["terms"][0][0])
|
dyn["terms"][0][0] = 'deck:"%s" %s ' % (self.deck["name"], dyn["terms"][0][0])
|
||||||
|
self.mw.col.decks.save(dyn)
|
||||||
# generate cards
|
# generate cards
|
||||||
self.created_custom_study = True
|
self.created_custom_study = True
|
||||||
if not self.mw.col.sched.rebuildDyn():
|
if not self.mw.col.sched.rebuildDyn():
|
||||||
|
|
Loading…
Reference in a new issue