mirror of
https://github.com/PaiGramTeam/EnkaNetwork.py.git
synced 2024-11-16 03:45:28 +00:00
Change return empty array to None
This commit is contained in:
parent
2cb1197484
commit
74029a5d6f
@ -5,6 +5,6 @@ from .players import PlayerInfo
|
||||
from .character import CharacterInfo
|
||||
|
||||
class EnkaNetworkResponse(BaseModel):
|
||||
player: PlayerInfo = Field({}, alias="playerInfo")
|
||||
characters: List[CharacterInfo] = Field([], alias="avatarInfoList")
|
||||
player: PlayerInfo = Field(None, alias="playerInfo")
|
||||
characters: List[CharacterInfo] = Field(None, alias="avatarInfoList")
|
||||
ttl: int = 0
|
Loading…
Reference in New Issue
Block a user