Skip to content

Commit

Permalink
Merge pull request #64 from CSCI128/bug_KWibbeler_indexerrorfix
Browse files Browse the repository at this point in the history
Fixed silly little index
  • Loading branch information
gregbell26 authored Sep 9, 2024
2 parents 838c803 + 2515512 commit 90a90e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Grade/grade.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit 90a90e7

Please sign in to comment.