From d524df505c13ebb080af88e732db24e01b288e15 Mon Sep 17 00:00:00 2001 From: LufsX Date: Tue, 8 Oct 2024 14:01:01 +0800 Subject: [PATCH] chore: top 10 socres --- RANK.html | 4 ++-- RANK.md | 4 ++-- app.py | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/RANK.html b/RANK.html index 4960df6..fd2a744 100644 --- a/RANK.html +++ b/RANK.html @@ -21,8 +21,8 @@

该页面展示得分前五名和最近三十次提交成功的数据(包括零分)。

数据非实时刷新,可能有最长五分钟的延迟。

详细日志信息点击「查看详情」即可查看。

-

前五名排行榜

-

这里展示得分前五名的数据。

+

前十名排行榜

+

这里展示得分前十名的数据。

以得分排序,分数高的靠前,若分数相同,则运行时间短的靠前。


diff --git a/RANK.md b/RANK.md index d74a17f..142224c 100644 --- a/RANK.md +++ b/RANK.md @@ -6,9 +6,9 @@ 详细日志信息点击「查看详情」即可查看。 -## 前五名排行榜 +## 前十名排行榜 -这里展示**得分前五名**的数据。 +这里展示**得分前十名**的数据。 以得分排序,分数高的靠前,若分数相同,则运行时间短的靠前。 diff --git a/app.py b/app.py index 0ed060c..9b82edc 100644 --- a/app.py +++ b/app.py @@ -152,10 +152,10 @@ def get_top_scores(project): if student_id not in best_scores_by_id: best_scores_by_id[student_id] = score - # 取前五名 + # 取前十名 for score in scores: score["running_time"] = str(score["running_time"]) + "ms" - top_scores = list(best_scores_by_id.values())[:5] + top_scores = list(best_scores_by_id.values())[:10] response = jsonify(top_scores) response.headers.add("Access-Control-Allow-Origin", "*")