Anki/anki
Arthur Milchior 3f45de87b3 New cards of existing note take due value of NEW siblings
Here is a bug, how to reproduce it, and why this is a fix.

This is a way to create a new note with a due card extremly high
without any add-on, just with basic anki.

Bug
===
Create a note type with three fields One, Two, and Three and three card
type One, Two and Three such that each card is generated when the
field of the same name is filled.

Create a note with fields One and Two filled only. Review card One and
click on good. Card one should goes in learning mode. Fill the field
Three. In the browser, you'll see that card Two and Three are new, but
card Two and Three's due value are distinct. More precisely, the due
value of card Three is equal to the due value of card One; except that
in card One it's interpreted as a timestamp, while in card Three it's
interpreted as a position in the list of new card.

You'll remark by the way that the due of card Three is extremly high,
potentially more than 1000000; which may explain why so many
collection has this bug.

Fix
===
Only consider due value of new cards.
2019-10-19 06:28:10 +02:00
..
importing Prevent non-integer ivl when importing from Mnemosyne 2019-08-30 14:56:44 +02:00
template use raw strings for regexs 2019-03-04 17:03:43 +10:00
__init__.py bump version 2019-09-24 16:12:38 +10:00
cards.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
collection.py New cards of existing note take due value of NEW siblings 2019-10-19 06:28:10 +02:00
consts.py tidy up unused imports 2019-03-04 17:25:19 +10:00
db.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
decks.py put deck fix messages in the collection log 2019-06-27 09:46:56 +10:00
errors.py fix some warnings 2019-03-04 16:01:10 +10:00
exporting.py add option to strip html in export 2019-03-05 08:57:53 +10:00
find.py escape backslash in find&replace 2019-09-24 15:46:26 +10:00
hooks.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
lang.py use locales instead of two digit lang codes 2019-09-23 21:18:03 +10:00
latex.py fix some warnings 2019-03-04 16:01:10 +10:00
media.py tidy up unused imports 2019-03-04 17:25:19 +10:00
models.py ensure the list of note types is not empty 2019-04-21 18:02:12 +10:00
mpv.py daemonize helper threads so that sys.exit() during startup works 2019-04-29 14:36:44 +10:00
notes.py update copyright and clarify licenses 2019-02-05 14:01:33 +10:00
sched.py fix some warnings 2019-03-04 16:01:10 +10:00
schedv2.py fix negative due dates in filtered decks 2019-09-24 15:38:33 +10:00
sound.py cleanup recording on cancel 2019-07-14 11:19:29 +10:00
stats.py Allow disabling timeTicks 2019-08-16 01:58:10 +10:00
statsbg.py statsbg credit/link 2019-08-31 10:47:01 +10:00
stdmodels.py tweak type answer note type 2019-05-14 17:05:37 +10:00
storage.py tidy up unused imports 2019-03-04 17:25:19 +10:00
sync.py tidy up unused imports 2019-03-04 17:25:19 +10:00
tags.py tidy up unused imports 2019-03-04 17:25:19 +10:00
utils.py keep json in utils for add-on compat 2019-03-06 07:18:26 +10:00