mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
fix backup rotation
add missing d and make pattern more specific
This commit is contained in:
parent
5bd2e10f3c
commit
c5188d9f3a
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue