Skip to content

Commit

Permalink
Add missing float type for CV
Browse files Browse the repository at this point in the history
  • Loading branch information
Geoff Gatward committed Nov 3, 2018
1 parent 3879f0e commit 65a8c28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clean_content_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ def cleanup(ver_list, ver_descr, dry_run, runuser, ver_keep, cleanall, ignorefir
print msg
continue
else:
if float(version['version']) < (lastver - float(ver_keep[cvid])):
if float(version['version']) < (float(lastver) - float(ver_keep[cvid])):
msg = "Removing version " + str(version['version'])
helpers.log_msg(msg, 'INFO')
print helpers.HEADER + msg + helpers.ENDC
Expand Down Expand Up @@ -220,7 +220,7 @@ def cleanup(ver_list, ver_descr, dry_run, runuser, ver_keep, cleanall, ignorefir
except KeyError:
msg = "Failed to initiate removal"
helpers.log_msg(msg, 'WARNING')

# Exit in the case of a dry-run
if dry_run:
msg = "Dry run - not actually performing removal"
Expand Down

0 comments on commit 65a8c28

Please sign in to comment.