Skip to content

Commit

Permalink
Fixes. Increase version.
Browse files Browse the repository at this point in the history
  • Loading branch information
teleyinex committed Feb 22, 2018
1 parent 81ec3e5 commit f73d85c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

setup(
name="pybossa-pbs",
version="2.4.5",
version="2.4.6",
author="Scifabric LTD",
author_email="[email protected]",
description="PYBOSSA command line client",
Expand Down

0 comments on commit f73d85c

Please sign in to comment.