Permalink
Browse files

Merge pull request #62 from pankajn17/master

Error when using commitWithin parameter
  • Loading branch information...
2 parents 42040ef + aeef7c4 commit 0556bedbccfab86884a13c08223bddbf4854b7c2 @tow committed Nov 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 sunburnt/sunburnt.py
View
@@ -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:

0 comments on commit 0556bed

Please sign in to comment.