Skip to content

Commit

Permalink
Fix allocation entry fetch (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwin1111 authored Aug 6, 2024
1 parent a19f3f3 commit 19888e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sageintacctsdk/apis/allocation_entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def get_all_generator(self, field: str = None, value: str = None, fields: list =
'CUSTOMERID', 'ITEMID', 'TASKID', 'COSTTYPEID', 'CLASSID']

fields = self.get_lookup()
if fields:
if fields and 'Type' in fields and fields['Type'] and 'Relationships' in fields['Type'] and fields['Type']['Relationships'] and 'Relationship' in fields['Type']['Relationships']:
fields = fields['Type']['Relationships']['Relationship']

for allocation_field in fields:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

setuptools.setup(
name='sageintacctsdk',
version='1.22.1',
version='1.22.2',
author='Ashwin T',
author_email='[email protected]',
description='Python SDK for accessing Sage Intacct APIs',
Expand Down

0 comments on commit 19888e9

Please sign in to comment.