mirror of
https://github.com/ankitects/anki.git
synced 2025-09-21 15:32:23 -04:00
don't send old backups to the trash (#912)
This commit is contained in:
parent
157b402495
commit
2047e5c93c
1 changed files with 1 additions and 1 deletions
|
@ -328,7 +328,7 @@ the manual for information on how to restore from an automatic backup."))
|
|||
delete = len(backups) + 1 - nbacks
|
||||
delete = backups[:delete]
|
||||
for file in delete:
|
||||
send2trash(os.path.join(dir, file[1]))
|
||||
os.unlink(os.path.join(dir, file[1]))
|
||||
|
||||
def maybeOptimize(self):
|
||||
# have two weeks passed?
|
||||
|
|
Loading…
Reference in a new issue