Skip to content

Commit

Permalink
feat: make UserGradeCounts attributes not nullable (#193)
Browse files Browse the repository at this point in the history
API will now only return 0.
  • Loading branch information
NiceAesth authored Oct 25, 2023
1 parent b9c50f2 commit ee0f32a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions aiosu/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,15 @@ class UserAccountHistory(BaseModel):


class UserGradeCounts(BaseModel):
ssh: Optional[int] = None
ssh: int
"""Number of Silver SS ranks achieved."""
ss: Optional[int] = None
ss: int
"""Number of SS ranks achieved."""
sh: Optional[int] = None
sh: int
"""Number of Silver S ranks achieved."""
s: Optional[int] = None
s: int
"""Number of S ranks achieved."""
a: Optional[int] = None
a: int
"""Number of A ranks achieved."""

@classmethod
Expand Down

0 comments on commit ee0f32a

Please sign in to comment.