|
|
@ -70,8 +70,8 @@ class RouteState(LoggingClass): |
|
|
|
if 'X-RateLimit-Remaining' not in response.headers: |
|
|
|
return |
|
|
|
|
|
|
|
self.remaining = int(response.headers.get('X-RateLimit-Remaining')) |
|
|
|
self.reset_time = int(response.headers.get('X-RateLimit-Reset')) |
|
|
|
self.remaining = int(float(response.headers.get('X-RateLimit-Remaining'))) |
|
|
|
self.reset_time = int(float(response.headers.get('X-RateLimit-Reset'))) |
|
|
|
|
|
|
|
def wait(self, timeout=None): |
|
|
|
""" |
|
|
|