🐛 Fix starrail act calendar model

This commit is contained in:
xtaodada 2024-09-10 13:30:19 +08:00
parent 1ba4729700
commit 1e23a95b08
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -31,8 +31,8 @@ class TimeInfo(APIModel):
start_ts: datetime.datetime start_ts: datetime.datetime
end_ts: datetime.datetime end_ts: datetime.datetime
start_time: datetime.datetime start_time: str
end_time: datetime.datetime end_time: str
now: datetime.datetime now: datetime.datetime
@ -72,6 +72,7 @@ class ActTypeEnum(str, Enum):
Sign = "ActivityTypeSign" Sign = "ActivityTypeSign"
Double = "ActivityTypeDouble" Double = "ActivityTypeDouble"
RogueTourn = "ActivityTypeRogueTourn"
Other = "ActivityTypeOther" Other = "ActivityTypeOther"
@ -88,11 +89,20 @@ class ActStatusEnum(str, Enum):
DoubleRewardActStatusProgress = "DoubleRewardActStatusProgress" DoubleRewardActStatusProgress = "DoubleRewardActStatusProgress"
DoubleRewardActStatusFinish = "DoubleRewardActStatusFinish" DoubleRewardActStatusFinish = "DoubleRewardActStatusFinish"
RogueTournActStatusProgress = "RogueTournActStatusProgress"
OtherActStatusUnopened = "OtherActStatusUnopened" OtherActStatusUnopened = "OtherActStatusUnopened"
OtherActStatusUnFinish = "OtherActStatusUnFinish" OtherActStatusUnFinish = "OtherActStatusUnFinish"
OtherActStatusFinish = "OtherActStatusFinish" OtherActStatusFinish = "OtherActStatusFinish"
class ActTimeTypeEnum(str, Enum):
"""An enumeration class representing the time type of an act in the StarRail act calendar."""
Default = "ActTimeTypeDefault"
Long = "ActTimeTypeLong"
class ActListItem(APIModel): class ActListItem(APIModel):
"""A model representing an item in the StarRail act calendar.""" """A model representing an item in the StarRail act calendar."""
@ -118,6 +128,7 @@ class ActListItem(APIModel):
special_reward: RewardItem special_reward: RewardItem
all_finished: bool all_finished: bool
show_text: str show_text: str
act_time_type: ActTimeTypeEnum
class ChallengeTypeEnum(str, Enum): class ChallengeTypeEnum(str, Enum):