Commit 179debf1 authored by Sam Kaufman's avatar Sam Kaufman Committed by Joshua Roesslein
Browse files

Now push lat/lon with only two decimals after the digit, like Twitter wants

parent 3d51a653
......@@ -192,7 +192,7 @@ class Stream(object):
params['track'] = ','.join(map(str, track))
if locations and len(locations) > 0:
assert len(locations) % 4 == 0
params['locations'] = ','.join(map(str, locations))
params['locations'] = ','.join(['%.2f' % l for l in locations])
self.body = urllib.urlencode(params)
self._start(async)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment