Update app.py
Browse files
app.py
CHANGED
|
@@ -216,7 +216,7 @@ def calculate_score_and_grades():
|
|
| 216 |
|
| 217 |
# Calculate total score and maximum possible score
|
| 218 |
total_score = sum(int(mark[0]) for mark in marks)
|
| 219 |
-
max_possible_score = int(max_marks)
|
| 220 |
|
| 221 |
# Prevent division by zero
|
| 222 |
if max_possible_score == 0:
|
|
|
|
| 216 |
|
| 217 |
# Calculate total score and maximum possible score
|
| 218 |
total_score = sum(int(mark[0]) for mark in marks)
|
| 219 |
+
max_possible_score = int(max_marks)*len(marks)
|
| 220 |
|
| 221 |
# Prevent division by zero
|
| 222 |
if max_possible_score == 0:
|