mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 16:02:23 -04:00
log total imported
This commit is contained in:
parent
972526d265
commit
d1e04b908d
1 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,9 @@ class SuperMemoElement(SmartDict):
|
|||
|
||||
# This is an AnkiImporter
|
||||
class SupermemoXmlImporter(NoteImporter):
|
||||
|
||||
needMapper = False
|
||||
|
||||
"""
|
||||
Supermemo XML export's to Anki parser.
|
||||
Goes through a SM collection and fetch all elements.
|
||||
|
@ -210,6 +213,8 @@ class SupermemoXmlImporter(NoteImporter):
|
|||
self.logger(u'Parsing done.')
|
||||
|
||||
# Return imported cards
|
||||
self.total = len(self.notes)
|
||||
self.log.append(_("%d cards imported.") % self.total)
|
||||
return self.notes
|
||||
|
||||
def fields(self):
|
||||
|
|
Loading…
Reference in a new issue