mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-16 12:02:17 +00:00
🐛 Fix empty data in starrail challenge boss floor
This commit is contained in:
parent
6c2c41239e
commit
277a33321a
@ -51,12 +51,17 @@ class StarRailChallengeBossBuff(APIModel):
|
|||||||
class StarRailChallengeBossFloorNode(APIModel):
|
class StarRailChallengeBossFloorNode(APIModel):
|
||||||
"""Node for a floor."""
|
"""Node for a floor."""
|
||||||
|
|
||||||
challenge_time: PartialTime
|
challenge_time: Optional[PartialTime] = None
|
||||||
avatars: List[RogueCharacter]
|
avatars: List[RogueCharacter]
|
||||||
buff: Optional[StarRailChallengeBossBuff] = None
|
buff: Optional[StarRailChallengeBossBuff] = None
|
||||||
score: int
|
score: int
|
||||||
boss_defeated: bool
|
boss_defeated: bool
|
||||||
|
|
||||||
|
@property
|
||||||
|
def has_data(self) -> bool:
|
||||||
|
"""Check if the node has data."""
|
||||||
|
return bool(self.avatars)
|
||||||
|
|
||||||
|
|
||||||
class StarRailChallengeBossFloor(APIModel):
|
class StarRailChallengeBossFloor(APIModel):
|
||||||
"""Floor in a challenge."""
|
"""Floor in a challenge."""
|
||||||
|
Loading…
Reference in New Issue
Block a user