Skip to content

Commit

Permalink
Fix ranking panel not fetching beatmap ishouldhavefuckingdonethisvefo…
Browse files Browse the repository at this point in the history
…erkolfgjasl;dfg
  • Loading branch information
FukutoTojido committed Jan 13, 2023
1 parent 6a8668a commit 7227d1b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1201,3 +1201,20 @@ async function getUserTop(name) {
console.error(error);
}
}

async function getMapDataSet(beatmapID) {
try {
const data = (
await axios.get("/get_beatmaps", {
baseURL: "https://osu.ppy.sh/api",
params: {
k: api,
b: beatmapID,
},
})
)["data"];
return data.length !== 0 ? data[0] : null;
} catch (error) {
console.error(error);
}
}

0 comments on commit 7227d1b

Please sign in to comment.