🐛: Fix missing parameters for new players (#3)

* 🐛: Make more parameters nullable

* 🔖: Bump to 1.3.2

* 🐛: Make more and more parameters nullable
This commit is contained in:
ishkong 2024-02-10 23:49:34 +08:00 committed by GitHub
parent ec43d2da38
commit 6e7f8ac0ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
[project]
name = "starrail_damage_cal"
version = "1.3.1"
version = "1.3.2"
description = "For StarRail Role Damage Cal"
authors = [
{name = "qwerdvd", email = "105906879+qwerdvd@users.noreply.github.com"},

View File

@ -47,31 +47,31 @@ class Challenge(Struct):
class ChallengeInfo(Struct):
scheduleMaxLevel: int
scheduleMaxLevel: Union[int, None] = None
scheduleGroupId: Union[int, None] = None
noneScheduleMaxLevel: Union[int, None] = None
class PlayerSpaceInfo(Struct):
maxRogueChallengeScore: int
equipmentCount: int
avatarCount: int
achievementCount: int
challengeInfo: ChallengeInfo
achievementCount: Union[int, None] = field(default=0)
equipmentCount: Union[int, None] = field(default=0)
maxRogueChallengeScore: Union[int, None] = field(default=0)
class PlayerDetailInfo(Struct):
assistAvatarList: Union[List[Avatar], None]
platform: Union[int, str]
isDisplayAvatar: bool
avatarDetailList: Union[List[Avatar], None]
uid: int
friendCount: int
worldLevel: int
nickname: str
level: int
recordInfo: Union[PlayerSpaceInfo, None]
headIcon: int
friendCount: Union[int, None] = field(default=0)
worldLevel: Union[int, None] = field(default=0)
avatarDetailList: Union[List[Avatar], None] = None
signature: Union[str, None] = None
Birthday: Union[int, None] = None