Skip to content

Commit

Permalink
git ls-files -z -- '*.py' | xargs -0 sed -i s/osz2/osz/g
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Jun 30, 2024
1 parent af126d9 commit c2d7177
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/api/domains/osu.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down Expand Up @@ -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"),
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c2d7177

Please sign in to comment.