Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixing a bug in setting commitWithin value

  • Loading branch information...
commit aeef7c4cee99d6bae9aeda067a365b186046afb7 1 parent 42040ef
@pankajn17 pankajn17 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  sunburnt/sunburnt.py
View
2  sunburnt/sunburnt.py
@@ -70,7 +70,7 @@ def url_for_update(self, commit=None, commitWithin=None, softCommit=None, optimi
extra_params['commit'] = "true" if commit else "false"
if commitWithin is not None:
try:
- extra_params['commitWithin'] = str(float(commitWithin))
+ extra_params['commitWithin'] = str(int(commitWithin))
except (TypeError, ValueError):
raise ValueError("commitWithin should be a number in milliseconds")
if extra_params['commitWithin'] < 0:
Please sign in to comment.
Something went wrong with that request. Please try again.