fix incorrect scheduling when importing cards in relearning

This commit is contained in:
Damien Elmes 2018-05-31 13:26:27 +10:00
parent c9c2ae92ee
commit f3bd16a181

View file

@ -301,6 +301,9 @@ class Anki2Importer(Importer):
# review cards have a due date relative to collection # review cards have a due date relative to collection
if card[7] in (2, 3) or card[6] == 2: if card[7] in (2, 3) or card[6] == 2:
card[8] -= aheadBy card[8] -= aheadBy
# odue needs updating too
if card[14]:
card[14] -= aheadBy
# if odid true, convert card from filtered to normal # if odid true, convert card from filtered to normal
if card[15]: if card[15]:
# odid # odid