mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
more explicit setting of creation time, don't fiddle with ordinals for rand
This commit is contained in:
parent
783751d7ea
commit
21ec548680
1 changed files with 4 additions and 4 deletions
|
@ -1066,13 +1066,13 @@ and due < :now""" % self.forceIndex("ix_cards_priorityDue"), now=time.time())
|
|||
due = random.uniform(0, time.time())
|
||||
t = time.time()
|
||||
for cardModel in cms:
|
||||
card = anki.cards.Card(fact, cardModel, t)
|
||||
created = fact.created + 0.000001*cardModel.ordinal
|
||||
card = anki.cards.Card(fact, cardModel, created)
|
||||
if isRandom:
|
||||
card.due = due + 0.000001*card.ordinal
|
||||
card.combinedDue = card.due
|
||||
card.due = due
|
||||
card.combinedDue = due
|
||||
self.flushMod()
|
||||
cards.append(card)
|
||||
t += .00001
|
||||
self.updateFactTags([fact.id])
|
||||
self.updatePriorities([c.id for c in cards])
|
||||
self.cardCount += len(cards)
|
||||
|
|
Loading…
Reference in a new issue