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 .character import CharacterInfo
from .profile import ProfilePatreon, ProfileOwner
from .profile import EnkaProfile, ProfileOwner
from .hoyos import PlayerHoyos
from ..utils import BASE_URL
@ -61,5 +61,5 @@ class EnkaNetworkResponse(BaseModel):
class EnkaNetworkProfileResponse(BaseModel):
username: str
profile: ProfilePatreon
profile: EnkaProfile
hoyos: List[PlayerHoyos] = []

View File

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