mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
update cram code for new spacing
This commit is contained in:
parent
bac4acdaa8
commit
b5dd8a9f4b
1 changed files with 2 additions and 4 deletions
|
@ -545,10 +545,8 @@ select count() from cards where type = 2 and combinedDue < :now
|
||||||
# prevent it from appearing in next queue fill
|
# prevent it from appearing in next queue fill
|
||||||
card.type += 6
|
card.type += 6
|
||||||
|
|
||||||
def _spaceCramCards(self, card, space):
|
def _spaceCramCards(self, card):
|
||||||
# if non-zero spacing, limit to 10 minutes or queue refill
|
self.spacedFacts[card.factId] = time.time() + self.newSpacing
|
||||||
if space > time.time():
|
|
||||||
self.spacedFacts[card.factId] = time.time() + 600
|
|
||||||
|
|
||||||
def _answerCramCard(self, card, ease):
|
def _answerCramCard(self, card, ease):
|
||||||
self._answerCard(card, ease)
|
self._answerCard(card, ease)
|
||||||
|
|
Loading…
Reference in a new issue