fix backup rotation

add missing d and make pattern more specific
This commit is contained in:
Damien Elmes 2017-09-10 12:56:27 +10:00
parent 5bd2e10f3c
commit c5188d9f3a

View File

@ -396,7 +396,7 @@ from the profile screen."))
backups = [] backups = []
for file in os.listdir(dir): for file in os.listdir(dir):
# only look for new-style format # 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: if not m:
continue continue
backups.append(file) backups.append(file)