mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
accept current and future mnemosyne imports
This commit is contained in:
parent
5ee1ee0450
commit
77bb67a555
1 changed files with 2 additions and 1 deletions
|
@ -18,7 +18,8 @@ class MnemosyneImporter(NoteImporter):
|
|||
db = DB(self.file)
|
||||
ver = db.scalar(
|
||||
"select value from global_variables where key='version'")
|
||||
assert ver.startswith('Mnemosyne SQL 1') or ver == "2"
|
||||
if not ver.startswith('Mnemosyne SQL 1') and ver not in ("2","3"):
|
||||
self.log.append(_("File version unknown, trying import anyway."))
|
||||
# gather facts into temp objects
|
||||
curid = None
|
||||
notes = {}
|
||||
|
|
Loading…
Reference in a new issue