From 80bb7484724d8314b4d42609797561413f190b07 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 14 Dec 2012 15:41:12 +0900 Subject: [PATCH] treat any backup- prefixed file as a full import --- aqt/importing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/importing.py b/aqt/importing.py index bdbee90f3..236811a34 100644 --- a/aqt/importing.py +++ b/aqt/importing.py @@ -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