diff --git a/pyZUnivers/leaderboards.py b/pyZUnivers/leaderboards.py index 1e905e0..4ff0067 100644 --- a/pyZUnivers/leaderboards.py +++ b/pyZUnivers/leaderboards.py @@ -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: @@ -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: