accept current and future mnemosyne imports

This commit is contained in:
Damien Elmes 2017-11-27 10:49:38 +10:00
parent 5ee1ee0450
commit 77bb67a555

View file

@ -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 = {}