Skip to content

Conversation

@jdkent
Copy link
Member

@jdkent jdkent commented Sep 17, 2025

No description provided.

commit_session()

return 204
return _make_json_response({}, status=200)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a successful delete should return a 204, not a 200

Comment on lines +107 to +130
def __init__(self, response):
self._response = response
self._cached = None

def _get(self):
if self._cached is None:
self._cached = self._response.json()
return self._cached

def __call__(self):
return self._get()

def __getitem__(self, item):
return self._get()[item]

def __iter__(self):
return iter(self._get())

def __len__(self):
return len(self._get())

def get(self, key, default=None):
return self._get().get(key, default)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this can be simplified at some future date.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants