From 251551205da9b429213824b7f3064907e46d65e7 Mon Sep 17 00:00:00 2001 From: Kylee Wibbeler Date: Mon, 9 Sep 2024 17:09:49 -0600 Subject: [PATCH] Fixed silly little index --- Grade/grade.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Grade/grade.py b/Grade/grade.py index ab31464..6fc0c07 100644 --- a/Grade/grade.py +++ b/Grade/grade.py @@ -147,7 +147,7 @@ def validateAndUpdateStatusAssignments(_gradescopeDF: pd.DataFrame, elif _specialCasesDF.loc[currentSpecialCase, 'handled'].values[0] != "": continue - indexToAccess = len(_specialCasesDF.loc[currentSpecialCase, 'extension_type'].values) - 1 + indexToAccess = 0 if _specialCasesDF.loc[currentSpecialCase, 'extension_type'].values[indexToAccess] in _statusAssignmentsDF['trigger'].values: # Create a bool mask for the current status assignment score for the student and the correct trigger @@ -157,6 +157,7 @@ def validateAndUpdateStatusAssignments(_gradescopeDF: pd.DataFrame, (_statusAssignmentsDF.loc[_statusAssignmentsDF['trigger'] == _specialCasesDF.loc[currentSpecialCase, 'extension_type'].values[indexToAccess], 'id'].values[indexToAccess])) + # Check to make sure that the student actually has a value for the status assignment # This should only happen if the student dropped, or recently added and does not yet have a score # for the assignment, either way, it will require manual intervention.