mirror of
https://github.com/ankitects/anki.git
synced 2025-09-20 23:12:21 -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):
|
||||
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:
|
||||
# adding
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue