Skip to content
This repository has been archived by the owner on Jan 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #50 from amir-qayyum-khan/fix/aq/handle_sid_none
Browse files Browse the repository at this point in the history
Handle unmatched gradebook students better #47
  • Loading branch information
amir-qayyum-khan committed Nov 27, 2018
2 parents b37efb6 + 0636b93 commit b798b86
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions pylmod/gradebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,7 @@ def _spreadsheet2gradebook_multi(
'Error in spreadsheet2gradebook: cannot find '
'student id for email="%s"\n', email
)
continue
for field in row.keys():
if field in non_assignment_fields:
continue
Expand Down
8 changes: 2 additions & 6 deletions pylmod/tests/test_gradebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ def _get_multigrade(self, approve_grades=False):
"""Get a list of spreadsheet rows as dictionaries
Get a list of spreadsheet row values to test submitting
grades in a spreadsheet to the LMod web service.
grades in a spreadsheet to the LMod web service. Only
grades with sid not equal to none are valid.
Args:
approve_grades (boolean): list of spreadsheet rows as
Expand All @@ -194,11 +195,6 @@ def _get_multigrade(self, approve_grades=False):
'mode': 2,
'numericGradeValue': 2.2,
'studentId': 1},
{'assignmentId': 1,
'isGradeApproved': approve_grades,
'mode': 2,
'numericGradeValue': 1.1,
'studentId': None},
]

def _register_get_gradebook(self, send_data=True):
Expand Down

0 comments on commit b798b86

Please sign in to comment.