From 7d107c0fdce7a70752ca8fb9a512e62ffbb3da72 Mon Sep 17 00:00:00 2001 From: archetipo Date: Tue, 28 Jul 2015 11:07:56 +0200 Subject: [PATCH] [FIX] autoremove method [FIX] Contributors --- auto_backup/README.rst | 2 +- auto_backup/model/backup_scheduler.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/auto_backup/README.rst b/auto_backup/README.rst index af72d17f3..d28db0a52 100644 --- a/auto_backup/README.rst +++ b/auto_backup/README.rst @@ -80,7 +80,7 @@ Credits Contributors ------------ -* Yenthe Van Ginneken +* Yenthe Van Ginneken * Alessio Gerace Maintainer diff --git a/auto_backup/model/backup_scheduler.py b/auto_backup/model/backup_scheduler.py index d62b6a3a9..a836f559c 100644 --- a/auto_backup/model/backup_scheduler.py +++ b/auto_backup/model/backup_scheduler.py @@ -375,8 +375,8 @@ class db_backup(models.Model): dir = rec.bkp_dir # Loop over all files in the directory. for f in os.listdir(dir): + fullpath = os.path.join(dir, f) if os.path.isfile(fullpath) and ".dump.zip" in f: - fullpath = os.path.join(dir, f) timestamp = os.stat(fullpath).st_ctime createtime = ( datetime.datetime.fromtimestamp(timestamp)