From c5188d9f3abb49427e813311ecf4d911264ca7ad Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Sun, 10 Sep 2017 12:56:27 +1000 Subject: [PATCH] fix backup rotation add missing d and make pattern more specific --- aqt/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aqt/main.py b/aqt/main.py index 49443d106..41c999e7c 100644 --- a/aqt/main.py +++ b/aqt/main.py @@ -396,7 +396,7 @@ from the profile screen.")) backups = [] for file in os.listdir(dir): # only look for new-style format - m = re.match("backup-\{4}-.+.apkg", file) + m = re.match("backup-\d{4}-\d{2}-.+.apkg", file) if not m: continue backups.append(file)