Skip to content

Commit

Permalink
style(joint_teapot/utils/joj3.py): renaming scorefile variable
Browse files Browse the repository at this point in the history
  • Loading branch information
ZJChe committed Jun 7, 2024
1 parent 140eb5a commit 9b3a8c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions joint_teapot/utils/joj3.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ def generate_scoreboard(score_file_path: str, scoreboard_file_path: str) -> None
column_updated = [False] * len(columns) # Record wether a score has been updated
# Update data
with open(score_file_path) as json_file:
scoreboard: Dict[str, Any] = json.load(json_file)
scorefile: Dict[str, Any] = json.load(json_file)

student = f"{scoreboard['studentname']} {scoreboard['studentid']}"
student = f"{scorefile['studentname']} {scorefile['studentid']}"
student_found = False
for row in data:
if row[0] == student:
Expand All @@ -49,7 +49,7 @@ def generate_scoreboard(score_file_path: str, scoreboard_file_path: str) -> None
) # In formal version should be -2
data.append(student_row)

for stagerecord in scoreboard["stagerecords"]:
for stagerecord in scorefile["stagerecords"]:
stagename = stagerecord["stagename"]
for stageresult in stagerecord["stageresults"]:
name = stageresult["name"]
Expand Down

0 comments on commit 9b3a8c4

Please sign in to comment.