Anki/anki
Damien Elmes 7502fba5ce change failed card handling
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.
2010-11-13 21:15:41 +09:00
..
importing more type handling updates; don't munge counts on sync 2010-11-13 18:39:24 +09:00
__init__.py bump version number 2010-08-19 13:42:19 +09:00
cards.py more type handling updates; don't munge counts on sync 2010-11-13 18:39:24 +09:00
db.py remove string exceptions for python2.6 2010-06-10 13:24:46 +09:00
deck.py change failed card handling 2010-11-13 21:15:41 +09:00
errors.py rename instance var to avoid deprecation warning 2009-04-29 15:28:13 +09:00
exporting.py more type handling updates; don't munge counts on sync 2010-11-13 18:39:24 +09:00
facts.py add a field cache for searching without html 2010-10-27 19:00:49 +09:00
fonts.py initial commit from hg 2008-09-27 23:50:03 +09:00
graphs.py more type handling updates; don't munge counts on sync 2010-11-13 18:39:24 +09:00
history.py fix reviewHistory table by rebuilding it 2009-03-15 07:27:44 +09:00
hooks.py allow arbitrary number of args in filters 2009-06-12 22:21:57 +09:00
lang.py translation patches from Piotr 2009-01-20 23:33:50 +09:00
latex.py python2.7/win32 fix for latex 2010-11-12 13:05:43 +09:00
media.py don't die when filename case is borked in media check 2010-08-16 19:28:45 +09:00
models.py document 'features' reuse, add tool to get var as string 2010-01-19 01:51:35 +09:00
sound.py python2.7 win32 compat fix 2010-10-23 13:58:03 +09:00
stats.py more type handling updates; don't munge counts on sync 2010-11-13 18:39:24 +09:00
stdmodels.py strip all chinese/japanese support out in favour of plugins 2009-06-10 22:58:28 +09:00
sync.py more type handling updates; don't munge counts on sync 2010-11-13 18:39:24 +09:00
tags.py don't create empty tags on export 2010-02-05 12:27:32 +09:00
utils.py marcus: handle html entities properly when stripping html 2010-10-27 20:12:00 +09:00