From c2d7177c0efe62469ba761f14a2b7ee8679d0846 Mon Sep 17 00:00:00 2001 From: cmyui Date: Sun, 30 Jun 2024 11:52:26 -0400 Subject: [PATCH] git ls-files -z -- '*.py' | xargs -0 sed -i s/osz2/osz/g Committed via https://github.com/asottile/all-repos --- app/api/domains/osu.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/api/domains/osu.py b/app/api/domains/osu.py index df2feaa1..5e9fe55d 100644 --- a/app/api/domains/osu.py +++ b/app/api/domains/osu.py @@ -117,9 +117,9 @@ async def wrapper( # Unhandled endpoints: # POST /web/osu-error.php # POST /web/osu-session.php -# POST /web/osu-osz2-bmsubmit-post.php -# POST /web/osu-osz2-bmsubmit-upload.php -# GET /web/osu-osz2-bmsubmit-getid.php +# POST /web/osu-osz-bmsubmit-post.php +# POST /web/osu-osz-bmsubmit-upload.php +# GET /web/osu-osz-bmsubmit-getid.php # GET /web/osu-get-beatmap-topic.php @@ -1236,7 +1236,7 @@ async def get_leaderboard_scores( ) -@router.get("/web/osu-osz2-getscores.php") +@router.get("/web/osu-osz-getscores.php") async def getScores( player: Player = Depends(authenticate_player_session(Query, "us", "ha")), requesting_from_editor_song_select: bool = Query(..., alias="s"), @@ -1370,7 +1370,7 @@ async def getScores( response_lines: list[str] = [ # NOTE: fa stands for featured artist (for the ones that may not know) - # {ranked_status}|{serv_has_osz2}|{bid}|{bsid}|{len(scores)}|{fa_track_id}|{fa_license_text} + # {ranked_status}|{serv_has_osz}|{bid}|{bsid}|{len(scores)}|{fa_track_id}|{fa_license_text} f"{int(bmap.status)}|false|{bmap.id}|{bmap.set_id}|{len(score_rows)}|0|", # {offset}\n{beatmap_name}\n{rating} # TODO: server side beatmap offsets