Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add level and level_progress to stats api routes #648

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
add note to level calculation
HorizonCode committed Mar 13, 2024
commit a376c3ebb3bb9baf70b34ef43cb0effbfc093217
2 changes: 1 addition & 1 deletion app/constants/level.py
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@

import math


# NOTE: https://osu.ppy.sh/wiki/en/Gameplay/Score/Total_score
def get_required_score_for_level(level: int) -> int:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i am ..not sure how i feel about functions living in constants?

if level <= 1:
return 0