Skip to content

Commit

Permalink
feat: Add bangboo field to DeadlyAssaultChallenge
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed Dec 25, 2024
1 parent d956ff3 commit 0a517e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion genshin/models/zzz/chronicle/challenge.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class ShiyuDefenseNode(APIModel):
"""Shiyu Defense node model."""

characters: list[ShiyuDefenseCharacter] = Aliased("avatars")
bangboo: typing.Optional[ShiyuDefenseBangboo] = Aliased("buddy")
bangboo: typing.Optional[ShiyuDefenseBangboo] = Aliased("buddy", default=None)
recommended_elements: list[ZZZElementType] = Aliased("element_type_list")
enemies: list[ShiyuDefenseMonster] = Aliased("monster_info")

Expand Down Expand Up @@ -179,6 +179,7 @@ class DeadlyAssaultChallenge(APIModel):
boss: DeadlyAssaultBoss
buffs: typing.Sequence[DeadlyAssaultBuff] = Aliased("buffer")
agents: typing.Sequence[DeadlyAssaultAgent] = Aliased("avatar_list")
bangboo: typing.Optional[ShiyuDefenseBangboo] = Aliased("buddy", default=None)

@pydantic.field_validator("challenge_time", mode="before")
def __parse_datetime(cls, value: typing.Mapping[str, typing.Any]) -> typing.Optional[TZDateTime]:
Expand Down

0 comments on commit 0a517e6

Please sign in to comment.