mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 23:42:23 -04:00
Anki is a smart spaced repetition flashcard program
![]() The old delay1 behaviour isn't easy to achieve with the queue code, as we only refresh the queue when it's emptied, and if the user has delay1 set to say 9 hours, failed mature cards sitting in the queue could prevent subsequent young failures from being displayed. Instead we convert delay1 to a count in days in which to offset failed mature cards. 0 means the same time as delay0, 1 means show the card a day later, and so on. This means users will lose the ability to delay mature cards for x number of minutes more than young cards, but a scan of AnkiOnline decks indicates that's not often done. We also need to use a separate cutoff for failed cards, since we need to be able to display them as they expire if the user has disabled per-day scheduling. And instead of marking cards as due in the future, we set their due time to the current time, and move the delay0 calculation to getCardId(). This means that if the user changes their failed card settings from say 1 hour to 10 minutes, the changes apply to the currently failed cards and not just cards failed in the future. |
||
---|---|---|
anki | ||
tests | ||
tools | ||
.gitignore | ||
ChangeLog.old | ||
COPYING | ||
ez_setup.py | ||
setup.cfg | ||
setup.py |