Change ProfilePatreon to EnkaProfile

This commit is contained in:
M307 (Mac) 2023-02-07 20:44:22 +07:00
parent 6794977515
commit 34ea345d1b
2 changed files with 4 additions and 4 deletions

View File

@ -3,7 +3,7 @@ from typing import List
from .players import PlayerInfo from .players import PlayerInfo
from .character import CharacterInfo from .character import CharacterInfo
from .profile import ProfilePatreon, ProfileOwner from .profile import EnkaProfile, ProfileOwner
from .hoyos import PlayerHoyos from .hoyos import PlayerHoyos
from ..utils import BASE_URL from ..utils import BASE_URL
@ -61,5 +61,5 @@ class EnkaNetworkResponse(BaseModel):
class EnkaNetworkProfileResponse(BaseModel): class EnkaNetworkProfileResponse(BaseModel):
username: str username: str
profile: ProfilePatreon profile: EnkaProfile
hoyos: List[PlayerHoyos] = [] hoyos: List[PlayerHoyos] = []

View File

@ -3,7 +3,7 @@ from pydantic import BaseModel
from ..enum import ProfileRank from ..enum import ProfileRank
from .build import Builds from .build import Builds
class ProfilePatreon(BaseModel): class EnkaProfile(BaseModel):
bio: str = '' bio: str = ''
level: ProfileRank = ProfileRank.TIER_1 level: ProfileRank = ProfileRank.TIER_1
signup_state: int = 0 signup_state: int = 0
@ -12,5 +12,5 @@ class ProfilePatreon(BaseModel):
class ProfileOwner(BaseModel): class ProfileOwner(BaseModel):
hash: str hash: str
username: str username: str
profile: ProfilePatreon profile: EnkaProfile
builds: Builds = None builds: Builds = None