Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions zoho/books/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,4 @@ def get_specific_record(self, module, id):

params = {'organization_id': self._organization_id} if self._organization_id is not None else {}

response = self._get(url, params=params)
if response and 'data' in response and len(response['data']) > 0 and response['data'][0]['id'] == id:
return response['data']
else:
return False
return self._get(url, params=params)