diff --git a/simnet/models/starrail/chronicle/challenge_boss.py b/simnet/models/starrail/chronicle/challenge_boss.py index 53fc3be..30a6ecd 100644 --- a/simnet/models/starrail/chronicle/challenge_boss.py +++ b/simnet/models/starrail/chronicle/challenge_boss.py @@ -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."""