Skip to content

Commit

Permalink
fix: fixed an issue when a player played on season 0in Blizzard data.…
Browse files Browse the repository at this point in the history
… Updated Mauga data following patch notes. (#80)
  • Loading branch information
TeKrop authored Dec 22, 2023
1 parent 5002fc0 commit 04cfcba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/data/heroes.csv
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ junkrat,Junkrat,damage,200,0,0
kiriko,Kiriko,support,200,0,0
lifeweaver,Lifeweaver,support,175,0,50
lucio,Lúcio,support,200,0,0
mauga,Mauga,tank,350,150,0
mauga,Mauga,tank,250,250,0
mei,Mei,damage,250,0,0
mercy,Mercy,support,200,0,0
moira,Moira,support,200,0,0
Expand Down
7 changes: 5 additions & 2 deletions app/models/players.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@ class PlayerCompetitiveRank(BaseModel):
class PlatformCompetitiveRanksContainer(BaseModel):
season: int | None = Field(
...,
description="Last competitive season played by the player",
description=(
"Last competitive season played by the player. Can be 0 on Blizzard "
"data for some reason, but can't explain what it means."
),
examples=[3],
ge=1,
ge=0,
)
tank: PlayerCompetitiveRank | None = Field(..., description="Tank role details")
damage: PlayerCompetitiveRank | None = Field(..., description="Damage role details")
Expand Down

0 comments on commit 04cfcba

Please sign in to comment.