Skip to content

Commit

Permalink
fix: leaderboards
Browse files Browse the repository at this point in the history
  • Loading branch information
MalikAza committed Jul 15, 2024
1 parent 9ab35af commit 1117bff
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pyZUnivers/leaderboards.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class _LeaderBoard:
def __init__(self, payload) -> None:
self.position = payload['position']
self.score = payload['score']
if payload['data']:
if 'data' in payload:
self.data = _LeaderBoardData(payload['data'])

class UserLeaderboards:
Expand Down Expand Up @@ -92,10 +92,6 @@ def challenge(self) -> _LeaderBoard:
def inventory_unique_golden(self) -> _LeaderBoard:
return _LeaderBoard(getattr(self, '__INVENTORY_UNIQUE_GOLDEN'))

@property
def inventory(self) -> _LeaderBoard:
return _LeaderBoard(getattr(self, '__INVENTORY'))

@property
def constellations(self) -> Union[bool, _LeaderBoard]:
try:
Expand Down

0 comments on commit 1117bff

Please sign in to comment.