Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed silly little index #64

Merged
merged 1 commit into from
Sep 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading