From cecf363c386f7899ee0bbbf68aa4fd3009e796ca Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 22 May 2020 11:25:11 +1000 Subject: [PATCH] fix custom study not saving --- qt/aqt/customstudy.py | 1 + 1 file changed, 1 insertion(+) diff --git a/qt/aqt/customstudy.py b/qt/aqt/customstudy.py index a32a0f87b..2b3e76020 100644 --- a/qt/aqt/customstudy.py +++ b/qt/aqt/customstudy.py @@ -183,6 +183,7 @@ class CustomStudy(QDialog): dyn["terms"][0] = [(terms + tags).strip(), spin, ord] # add deck limit dyn["terms"][0][0] = 'deck:"%s" %s ' % (self.deck["name"], dyn["terms"][0][0]) + self.mw.col.decks.save(dyn) # generate cards self.created_custom_study = True if not self.mw.col.sched.rebuildDyn():