Skip to content

Commit

Permalink
refactor: Refactor comments
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Feb 2, 2024
1 parent 3e71f48 commit 44e3f8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enka/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def _post_process_showcase_character(
if showcase_character.costume_id is None:
return showcase_character

# costume
costume_data = self._assets.character_data[str(showcase_character.id)]["Costumes"]
if costume_data is not None:
showcase_character.costuime_icon = Icon(
Expand Down Expand Up @@ -188,9 +189,10 @@ def _post_process_character(self, character: "Character") -> "Character":
return character

def _post_process_showcase(self, showcase: ShowcaseResponse) -> ShowcaseResponse:
# player
showcase.player = self._post_process_player(showcase.player)

# costume
# showcase characters
showcase_characters: list[ShowcaseCharacter] = []
for character in showcase.player.showcase_characters:
showcase_characters.append(self._post_process_showcase_character(character))
Expand Down

0 comments on commit 44e3f8b

Please sign in to comment.