Skip to content

Commit

Permalink
fix: Add default value for LightCone.ascension
Browse files Browse the repository at this point in the history
  • Loading branch information
seriaati committed May 17, 2024
1 parent ef6fb9c commit 4e3b5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enka/models/hsr/character.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class LightCone(BaseModel):

id: int = Field(alias="tid")
level: int
ascension: Literal[0, 1, 2, 3, 4, 5, 6] = Field(alias="promotion")
ascension: Literal[0, 1, 2, 3, 4, 5, 6] = Field(0, alias="promotion")
superimpose: Literal[1, 2, 3, 4, 5] = Field(alias="rank")
name: str # Returned as text map hash in the API response
stats: list[Stat] = Field(alias="props")
Expand Down

0 comments on commit 4e3b5af

Please sign in to comment.