Skip to content

Commit

Permalink
Remove non-int backup folders. closes CouchPotato#1298
Browse files Browse the repository at this point in the history
  • Loading branch information
RuudBurger committed Jan 23, 2013
1 parent b35f325 commit ab53f44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion couchpotato/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit ab53f44

Please sign in to comment.