Browse Source

Remove non-int backup folders. closes #1298

pull/1284/merge
Ruud 12 years ago
parent
commit
7c38ad1c00
  1. 2
      couchpotato/runner.py

2
couchpotato/runner.py

@ -98,7 +98,7 @@ def runCouchPotato(options, base_path, args, data_dir = None, log_dir = None, En
total_backups = len(backups)
for backup in backups:
if total_backups > 3:
if int(os.path.basename(backup)) < time.time() - 259200:
if tryInt(os.path.basename(backup)) < time.time() - 259200:
for src_file in src_files:
b_file = os.path.join(backup, os.path.basename(src_file))
if os.path.isfile(b_file):

Loading…
Cancel
Save