mirror of
https://github.com/ankitects/anki.git
synced 2025-12-11 05:46:55 -05: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)
|
db = DB(self.file)
|
||||||
ver = db.scalar(
|
ver = db.scalar(
|
||||||
"select value from global_variables where key='version'")
|
"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
|
# gather facts into temp objects
|
||||||
curid = None
|
curid = None
|
||||||
notes = {}
|
notes = {}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue