Skip to content

Commit

Permalink
load/update level attr when checked
Browse files Browse the repository at this point in the history
  • Loading branch information
CNDRD committed Feb 11, 2022
1 parent e17104f commit e696024
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion siegeapi/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ async def load_trends(self, block_duration: TrendBlockDuration = TrendBlockDurat

async def load_only_level(self) -> int:
data = await self.auth.get(self.url_builder.create_level_only_url())
return data["stats"]["PClearanceLevel"]["value"]
self.level = data["stats"]["PClearanceLevel"]["value"]
return self.level

async def load_playtime(self) -> dict[str: int]:
data = await self.auth.get(self.url_builder.create_playtime_url(PLAYTIME_URL_STATS))
Expand Down

0 comments on commit e696024

Please sign in to comment.