File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -249,7 +249,8 @@ defmodule Cadet.Assessments do
249249 Answer
250250 |> join ( :inner , [ a ] , s in assoc ( a , :submission ) )
251251 |> where ( [ _ , s ] , s . student_id == ^ course_reg . id )
252- # change a.xp and a.xp_adjustment to 0 if a.is_grading_published is false and return all answers
252+ # change a.xp and a.xp_adjustment to 0
253+ # if a.is_grading_published is false and return all answers
253254 |> select ( [ a , s ] , % {
254255 a
255256 | xp: fragment ( "CASE WHEN ? THEN ? ELSE 0 END" , s . is_grading_published , a . xp ) ,
@@ -911,7 +912,8 @@ defmodule Cadet.Assessments do
911912 end
912913 end
913914
914- # This function changes the is_grading_published field of the submission to true only if all the answers are graded
915+ # This function changes the is_grading_published field of the submission to true
916+ # only if all the answers are graded
915917 # and sends a notification to the student
916918 def publish_grading ( submission_id , cr = % CourseRegistration { id: course_reg_id , role: role } )
917919 when is_ecto_id ( submission_id ) do
You can’t perform that action at this time.
0 commit comments