mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 07:22:23 -04:00
treat any backup- prefixed file as a full import
This commit is contained in:
parent
259aec9a28
commit
80bb748472
1 changed files with 1 additions and 1 deletions
|
@ -321,7 +321,7 @@ Unable to import from a read-only file."""))
|
||||||
|
|
||||||
def setupApkgImport(mw, importer):
|
def setupApkgImport(mw, importer):
|
||||||
base = os.path.basename(importer.file).lower()
|
base = os.path.basename(importer.file).lower()
|
||||||
full = (base == "collection.apkg") or re.match("backup-\d+.apkg", base)
|
full = (base == "collection.apkg") or re.match("backup-.*\\.apkg", base)
|
||||||
if not full:
|
if not full:
|
||||||
# adding
|
# adding
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue