Skip to content

Commit

Permalink
clean up outputs and readme
Browse files Browse the repository at this point in the history
  • Loading branch information
alisonmyers committed Apr 2, 2024
1 parent 43ca832 commit 675e8de
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 22 deletions.
20 changes: 12 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
# Canvas Rubric
Download Assignments and Quiz rubric scores (and comments, only for Assignments right now) .
Download Assignments and Quiz rubric scores (and comments, only for Assignments right now).

A canvas submission has two scores: the Submission Score and the Rubric Total Score. These may be provided by different users (i.e a TA uses the rubric and the Instructor gives a final score). The data provided here only indicates the Rubric Grader which may be different than the provider of the Submission Score.

Canvas Rubric returns a CSV with the following headers:
* Student Name
* Student Number
* Section Number
* TA Name
* TA Student Number
* Total grade on assignment
* Link to download assignment submission
* Student Number (SIS ID)
* Student Canvas ID
* Section Name
* Submission State
* Submission Score [the score given to the submission, seperate from the rubric]
* Rubric Grader Name
* Rubric Grader Role
* Rubric Total Score [the total score from the rubric]
* Each individual component of the rubric (grade and comments)
* Overall comments made by TA/Instructor only (student comments are filtered out)
* Overall submission comments made by non-students only (student comments are filtered out)

## Getting Started

Expand Down
27 changes: 13 additions & 14 deletions writeToCSV.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ const writeToCSV = (data, filename) => {
'student_name',
'student_number',
'student_canvas_id',
'student_role',
//'student_role',
'section_name',
'submission_state',
'submission_score',
'grader_id',
'grader_name',
'grader_role',
'rubricScore',
'rubricGraderName',
'rubricGraderRole'
//'grader_id',
//'grader_name',
//'grader_role',
'rubric_grader_name',
'rubric_grader_role',
'total_rubric_score',
]

data[0].rubricData.forEach((_, i) => {
Expand All @@ -42,16 +42,16 @@ const writeToCSV = (data, filename) => {
escapeComment(studentData.userName),
studentData.userSISID,
studentData.userCanvasID,
studentData.enrollmentType,
//studentData.enrollmentType,
studentData.sectionName,
studentData.submissionState,
studentData.submissionScore,
studentData.graderId,
escapeComment(studentData.graderName),
studentData.graderRole,
studentData.rubricScore,
//studentData.graderId,
//escapeComment(studentData.graderName),
//studentData.graderRole,
escapeComment(studentData.rubricGraderName),
studentData.rubricGraderRole
studentData.rubricGraderRole,
studentData.rubricScore,
]

studentData.rubricData.forEach(({ points, comments }) => {
Expand All @@ -60,7 +60,6 @@ const writeToCSV = (data, filename) => {
})

studentData.overallComments.forEach(comments => row.push(escapeComment(comments)))
//console.log(row)
append(csv, row)
})
}
Expand Down

0 comments on commit 675e8de

Please sign in to comment.