Permalink
Browse files

Doubly fixed fromdate= and todate= nonsense.

  • Loading branch information...
1 parent 942054d commit 3b312c5f8c7eaed0e8d566f345a3ad99e374791b @lucjon committed Jun 10, 2011
Showing with 5 additions and 1 deletion.
  1. +5 −1 stackexchange/__init__.py
View
6 stackexchange/__init__.py
@@ -553,7 +553,11 @@ def _request(self, to, params):
new_params = {}
for k, v in params.iteritems():
- new_params[k] = self._kw_to_str(v)
+ if k in ('fromdate', 'todate'):
+ # bit of a HACKish workaround for a reported issue; force to an integer
+ new_params[k] = str(int(v))
+ else:
+ new_params[k] = self._kw_to_str(v)
if self.app_key != None:
new_params['key'] = self.app_key

0 comments on commit 3b312c5

Please sign in to comment.