Skip to content

Commit

Permalink
feat: Add round_icon attribute to Character and CharacterDetail
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Jan 5, 2024
1 parent 4ade147 commit fb7e3aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions yatta/models/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,10 @@ def medium_icon(self) -> str:
def large_icon(self) -> str:
return self.icon.replace("avatar", "avatar/large")

@property
def round_icon(self) -> str:
return self.icon.replace("avatar", "avatar/round")


class CharacterType(BaseModel):
path_type: str = Field(alias="pathType")
Expand All @@ -423,3 +427,7 @@ def medium_icon(self) -> str:
@property
def large_icon(self) -> str:
return self.icon.replace("avatar", "avatar/large")

@property
def round_icon(self) -> str:
return self.icon.replace("avatar", "avatar/round")

0 comments on commit fb7e3aa

Please sign in to comment.