Skip to content

Commit

Permalink
fix: key missing, again ......
Browse files Browse the repository at this point in the history
  • Loading branch information
MalikAza committed Jul 15, 2024
1 parent 5eeacc2 commit a6ba19f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyZUnivers/corporations.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ def joined_date(self) -> datetime:

@property
def today_donations(self) -> int:
if 'giveToday' not in self.__payload:
return 0

return self.__payload['giveToday']

@property
Expand Down
1 change: 1 addition & 0 deletions pyZUnivers/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,5 +348,6 @@ def get_inventory(self, search: str = None) -> List[UserInventoryObject]:
List[UserInventoryObject]: The inventory of the user.
"""
return get_inventory(self.__parsed_name, search)

def best_inventory(self, limit: int = 10) -> List[UserInventoryObject]:
return best_inventory(self.__parsed_name, limit=limit)

0 comments on commit a6ba19f

Please sign in to comment.