mirror of
https://github.com/ankitects/anki.git
synced 2025-09-22 07:52:24 -04:00
support any file when tab separated, always use review for mnem
This commit is contained in:
parent
54c6220e51
commit
baa1bbba5f
2 changed files with 4 additions and 2 deletions
|
@ -224,8 +224,8 @@ from anki.importing.mnemosyne10 import Mnemosyne10Importer
|
||||||
from anki.importing.wcu import WCUImporter
|
from anki.importing.wcu import WCUImporter
|
||||||
|
|
||||||
Importers = (
|
Importers = (
|
||||||
(_("TAB/semicolon-separated file (*.*)"), TextImporter),
|
(_("TAB/semicolon-separated file (*)"), TextImporter),
|
||||||
(_("Anki 1.0 deck (*.anki)"), Anki10Importer),
|
(_("Anki 1.0 deck (*.anki)"), Anki10Importer),
|
||||||
(_("Mnemosyne 1.0 deck (*.mem)"), Mnemosyne10Importer),
|
(_("Mnemosyne 1.x deck (*.mem)"), Mnemosyne10Importer),
|
||||||
(_("CueCard deck (*.wcu)"), WCUImporter),
|
(_("CueCard deck (*.wcu)"), WCUImporter),
|
||||||
)
|
)
|
||||||
|
|
|
@ -60,6 +60,8 @@ class Mnemosyne10Importer(Importer):
|
||||||
card.reps = card.yesCount + card.noCount
|
card.reps = card.yesCount + card.noCount
|
||||||
if item.cat.name != u"<default>":
|
if item.cat.name != u"<default>":
|
||||||
card.tags = item.cat.name
|
card.tags = item.cat.name
|
||||||
|
if card.reps:
|
||||||
|
card.type = 1
|
||||||
cards.append(card)
|
cards.append(card)
|
||||||
return cards
|
return cards
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue