Skip to content

Commit

Permalink
🐛 Fix max number achievement
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Oct 20, 2024
1 parent b54fb5c commit f8ec930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simnet/models/genshin/chronicle/achievement.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def max(self) -> int:
Returns:
int: The maximum completion value if `show_percent` is True, otherwise 0.
"""
return int(self.finish_num / (self.percentage / 100.0)) if self.percentage else 0
return round(self.finish_num / (self.percentage / 100.0)) if self.percentage else 0


class GenshinAchievementInfo(APIModel):
Expand Down

0 comments on commit f8ec930

Please sign in to comment.