mirror of
https://github.com/ankitects/anki.git
synced 2025-11-08 13:47:13 -05:00
randomize after reset; refresh deck
This commit is contained in:
parent
54252afaf1
commit
32d5dccbc9
1 changed files with 4 additions and 1 deletions
|
|
@ -512,7 +512,10 @@ matureEase3 = 0,matureEase4 = 0, yesCount = 0, noCount = 0,
|
||||||
spaceUntil = 0, isDue = 0, type = 2,
|
spaceUntil = 0, isDue = 0, type = 2,
|
||||||
combinedDue = created, modified = :now, due = created
|
combinedDue = created, modified = :now, due = created
|
||||||
where id in %s""" % ids2str(ids), now=time.time(), new=0)
|
where id in %s""" % ids2str(ids), now=time.time(), new=0)
|
||||||
self.flushMod()
|
if self.newCardOrder == NEW_CARDS_RANDOM:
|
||||||
|
# we need to re-randomize now
|
||||||
|
self.randomizeNewCards(ids)
|
||||||
|
self.refresh()
|
||||||
|
|
||||||
def randomizeNewCards(self, cardIds=None):
|
def randomizeNewCards(self, cardIds=None):
|
||||||
"Randomize 'due' on all new cards."
|
"Randomize 'due' on all new cards."
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue