From d1e04b908d96928a4c693895f2e6be28c524e0bb Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Wed, 7 Mar 2012 07:08:02 +0900 Subject: [PATCH] log total imported --- anki/importing/supermemo_xml.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/anki/importing/supermemo_xml.py b/anki/importing/supermemo_xml.py index 3c9f744df..d50c60f98 100644 --- a/anki/importing/supermemo_xml.py +++ b/anki/importing/supermemo_xml.py @@ -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):