set minimal count of accepted_number for user rank
This commit is contained in:
@@ -63,7 +63,7 @@ onMounted(async () => {
|
||||
|
||||
async function listRanks() {
|
||||
const offset = (query.page - 1) * query.limit
|
||||
const res = await getRank(offset, query.limit, query.username)
|
||||
const res = await getRank(offset, query.limit, 0, query.username)
|
||||
data.value = res.data.results
|
||||
total.value = res.data.total
|
||||
}
|
||||
|
||||
@@ -104,9 +104,14 @@ export function getSubmissionStatistics(
|
||||
})
|
||||
}
|
||||
|
||||
export function getRank(offset: number, limit: number, username?: string) {
|
||||
export function getRank(
|
||||
offset: number,
|
||||
limit: number,
|
||||
n: number,
|
||||
username?: string,
|
||||
) {
|
||||
return http.get("user_rank", {
|
||||
params: { offset, limit, rule: "acm", username },
|
||||
params: { offset, limit, rule: "acm", username, n },
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ const chart = ref<Rank[]>([])
|
||||
|
||||
async function listRanks() {
|
||||
const offset = (query.page - 1) * query.limit
|
||||
const res = await getRank(offset, query.limit)
|
||||
const res = await getRank(offset, query.limit, 30)
|
||||
data.value = res.data.results
|
||||
total.value = res.data.total
|
||||
if (query.page === 1) {
|
||||
|
||||
Reference in New Issue
Block a user