mirror of
https://github.com/ankitects/anki.git
synced 2025-09-25 01:06:35 -04:00
update dynamic indices on cram & study opt change
This commit is contained in:
parent
a234c7b3ba
commit
4dea5d284a
1 changed files with 4 additions and 1 deletions
|
@ -1113,6 +1113,7 @@ day = :d""", d=yesterday)
|
||||||
elif (not self.deck.delay0 and
|
elif (not self.deck.delay0 and
|
||||||
not self.mainWin.delayLapsedCards.isChecked()):
|
not self.mainWin.delayLapsedCards.isChecked()):
|
||||||
self.deck.delay0 = 600
|
self.deck.delay0 = 600
|
||||||
|
self.deck.updateDynamicIndices()
|
||||||
self.deck.startSession()
|
self.deck.startSession()
|
||||||
self.deck.flushMod()
|
self.deck.flushMod()
|
||||||
self.moveToState("getQuestion")
|
self.moveToState("getQuestion")
|
||||||
|
@ -1379,7 +1380,7 @@ day = :d""", d=yesterday)
|
||||||
ui.utils.showInfo(_("No cards matched the provided tags."))
|
ui.utils.showInfo(_("No cards matched the provided tags."))
|
||||||
return
|
return
|
||||||
if self.config['randomizeOnCram']:
|
if self.config['randomizeOnCram']:
|
||||||
n = 4
|
n = 5
|
||||||
else:
|
else:
|
||||||
n = 2
|
n = 2
|
||||||
p = ui.utils.ProgressWin(self, n, 0, _("Cram"))
|
p = ui.utils.ProgressWin(self, n, 0, _("Cram"))
|
||||||
|
@ -1413,6 +1414,8 @@ day = :d""", d=yesterday)
|
||||||
p.update()
|
p.update()
|
||||||
self.deck.s.statement(
|
self.deck.s.statement(
|
||||||
"update fields set factId = (select new from idmap where old = factId)")
|
"update fields set factId = (select new from idmap where old = factId)")
|
||||||
|
p.update()
|
||||||
|
self.deck.updateDynamicIndices()
|
||||||
self.reset()
|
self.reset()
|
||||||
p.finish()
|
p.finish()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue