From 3f8d7af7256bea464216c0b327f12c0bf854577a Mon Sep 17 00:00:00 2001
From: BoYanZh <boyanzh233@gmail.com>
Date: Sat, 16 Nov 2024 02:19:54 -0500
Subject: [PATCH] feat: scoreboard show raw score

---
 joint_teapot/app.py        | 1 -
 joint_teapot/utils/joj3.py | 5 +----
 2 files changed, 1 insertion(+), 5 deletions(-)

diff --git a/joint_teapot/app.py b/joint_teapot/app.py
index ea6c8f0..2d8e142 100644
--- a/joint_teapot/app.py
+++ b/joint_teapot/app.py
@@ -586,7 +586,6 @@ def joj3_all(
                     submitter,
                     os.path.join(repo_path, scoreboard_file_name),
                     exercise_name,
-                    max_total_score,
                 )
                 tea.pot.git.add_commit(
                     repo_name,
diff --git a/joint_teapot/utils/joj3.py b/joint_teapot/utils/joj3.py
index 9dff060..486d197 100644
--- a/joint_teapot/utils/joj3.py
+++ b/joint_teapot/utils/joj3.py
@@ -13,7 +13,6 @@ def generate_scoreboard(
     submitter: str,
     scoreboard_file_path: str,
     exercise_name: str,
-    max_total_score: int = -1,
 ) -> None:
     if not scoreboard_file_path.endswith(".csv"):
         logger.error(
@@ -73,8 +72,7 @@ def generate_scoreboard(
     for stage in stages:
         for result in stage["results"]:
             exercise_total_score += result["score"]
-    if max_total_score >= 0:
-        exercise_total_score = min(exercise_total_score, max_total_score)
+    exercise_total_score = exercise_total_score
     submitter_row[columns.index(exercise_name)] = str(exercise_total_score)
 
     total = 0
@@ -235,7 +233,6 @@ def generate_title_and_comment(
         comment += "\n"
     title = get_title_prefix(exercise_name, submitter, submitter_in_title)
     if max_total_score >= 0:
-        total_score = min(total_score, max_total_score)
         title += f"{total_score} / {max_total_score}"
     else:
         title += f"{total_score}"