mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 06:52:21 -04:00
if there's no LastRepetition element, don't try import learning data
This commit is contained in:
parent
6e7ea8e25b
commit
e3f64c0f07
1 changed files with 3 additions and 1 deletions
|
@ -235,7 +235,9 @@ class SupermemoXmlImporter(NoteImporter):
|
||||||
|
|
||||||
# pre-process scheduling data
|
# pre-process scheduling data
|
||||||
# convert learning data
|
# convert learning data
|
||||||
if not self.META.resetLearningData and item.Interval >= 1:
|
if (not self.META.resetLearningData
|
||||||
|
and item.Interval >= 1
|
||||||
|
and getattr(item, "LastRepetition", None)):
|
||||||
# migration of LearningData algorithm
|
# migration of LearningData algorithm
|
||||||
tLastrep = time.mktime(time.strptime(item.LastRepetition, '%d.%m.%Y'))
|
tLastrep = time.mktime(time.strptime(item.LastRepetition, '%d.%m.%Y'))
|
||||||
tToday = time.time()
|
tToday = time.time()
|
||||||
|
|
Loading…
Reference in a new issue