log total notes imported

This commit is contained in:
Damien Elmes 2012-03-07 06:02:16 +09:00
parent 869d665c22
commit e175dcd2d8

View file

@ -77,8 +77,12 @@ acq_reps+ret_reps, lapses from cards"""):
note['cards'] = {} note['cards'] = {}
note['cards'][ord] = c note['cards'][ord] = c
self._addFronts(front) self._addFronts(front)
total = self.total
self._addFrontBacks(frontback) self._addFrontBacks(frontback)
total += self.total
self._addVocabulary(vocabulary) self._addVocabulary(vocabulary)
self.total += total
self.log.append(_("%d notes imported.") % self.total)
def fields(self): def fields(self):
return self._fields return self._fields