mirror of
https://github.com/PaiGramTeam/SIMNet.git
synced 2024-11-16 03:55:28 +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):
|
||||
"""Node for a floor."""
|
||||
|
||||
challenge_time: PartialTime
|
||||
challenge_time: Optional[PartialTime] = None
|
||||
avatars: List[RogueCharacter]
|
||||
buff: Optional[StarRailChallengeBossBuff] = None
|
||||
score: int
|
||||
boss_defeated: bool
|
||||
|
||||
@property
|
||||
def has_data(self) -> bool:
|
||||
"""Check if the node has data."""
|
||||
return bool(self.avatars)
|
||||
|
||||
|
||||
class StarRailChallengeBossFloor(APIModel):
|
||||
"""Floor in a challenge."""
|
||||
|
Loading…
Reference in New Issue
Block a user