Skip to content

Commit

Permalink
oops - some are instantiated
Browse files Browse the repository at this point in the history
  • Loading branch information
philipithomas committed Apr 2, 2016
1 parent db606c3 commit 87f0e81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions staffjoy/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def get_all(cls, parent=None, **params):
r = requests.get(base_obj._url(),
auth=(base_obj.key, ""),
params=params)
time.sleep(self.REQUEST_SLEEP)
time.sleep(cls.REQUEST_SLEEP)

if r.status_code not in cls.TRUTHY_CODES:
return base_obj._handle_request_exception(r)
Expand Down Expand Up @@ -176,7 +176,7 @@ def create(cls, parent=None, **kwargs):
obj = cls(key=parent.key, route=route, config=parent.config)

response = requests.post(obj._url(), auth=(obj.key, ""), data=kwargs)
time.sleep(self.REQUEST_SLEEP)
time.sleep(cls.REQUEST_SLEEP)

if response.status_code not in cls.TRUTHY_CODES:
return cls._handle_request_exception(response)
Expand Down

0 comments on commit 87f0e81

Please sign in to comment.