diff --git a/enkanetwork/model/assets.py b/enkanetwork/model/assets.py index f71b1b4..d59dc7c 100644 --- a/enkanetwork/model/assets.py +++ b/enkanetwork/model/assets.py @@ -44,4 +44,4 @@ class CharacterAsset(BaseModel): def __init__(__pydantic_self__, **data: Any) -> None: super().__init__(**data) - __pydantic_self__.element = ElementType(__pydantic_self__.element).name if data["costElemType"] != "" else ElementType.Unknown.name + __pydantic_self__.element = ElementType(data["costElemType"]) if data["costElemType"] != "" else ElementType.Unknown.name diff --git a/enkanetwork/model/character.py b/enkanetwork/model/character.py index 782e6cc..5042190 100644 --- a/enkanetwork/model/character.py +++ b/enkanetwork/model/character.py @@ -84,7 +84,7 @@ class CharacterInfo(BaseModel): # Get element __pydantic_self__.element = ElementType(character.element).name - + # Load constellation LOGGER.debug(f"=== Constellation ===") for constellation in character.constellations: