mirror of
https://github.com/PaiGramTeam/HonkaiStarRailWikiDataParser.git
synced 2024-11-16 06:25:25 +00:00
style: update head icon model
This commit is contained in:
parent
21eb9a999e
commit
d2f19569fc
@ -12,14 +12,17 @@ class HeadIcon(BaseModel):
|
||||
icons: List[str]
|
||||
|
||||
@property
|
||||
def icon(self) -> str:
|
||||
for icon in self.icons:
|
||||
if icon:
|
||||
return icon
|
||||
def webp(self) -> str:
|
||||
return self.icons[0]
|
||||
|
||||
@property
|
||||
def png(self) -> str:
|
||||
return self.icons[1]
|
||||
|
||||
|
||||
# 原始数据
|
||||
|
||||
|
||||
class ForHash(BaseModel):
|
||||
Hash: str
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user