diff --git a/helpers.py b/helpers.py index 39ec949..dd435f7 100644 --- a/helpers.py +++ b/helpers.py @@ -437,8 +437,6 @@ def enable_auto_throttling(config, data, limit=299, endpoint='/api/task'): limit = server_limit or limit # Get reset time reset_epoch = int(headers.get('X-RateLimit-Reset', 0)) - reset_time = datetime.datetime(1970, 1, 1) + \ - datetime.timedelta(seconds=reset_epoch) # Compute sleep time sleep = (reset_epoch - calendar.timegm(datetime.datetime.utcnow().utctimetuple())) diff --git a/setup.py b/setup.py index 22fecd0..345d150 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ setup( name="pybossa-pbs", - version="2.4.5", + version="2.4.6", author="Scifabric LTD", author_email="info@scifabric.com", description="PYBOSSA command line client",