Skip to content
This repository was archived by the owner on Jun 30, 2024. It is now read-only.

Commit 82d8365

Browse files
committed
Fix: percent correct calculation
1 parent f7b5244 commit 82d8365

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

controllers/peer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ def percent_correct():
295295
if corr == 0:
296296
return json.dumps({"pct_correct": "No Correct Answers"})
297297
else:
298-
return json.dumps({"pct_correct": tot / corr * 100})
298+
return json.dumps({"pct_correct": corr / tot * 100})
299299

300300

301301
#

0 commit comments

Comments
 (0)