Skip to content

Commit af683fd

Browse files
committed
fix credo long line
1 parent 55c5a36 commit af683fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/cadet/assessments/assessments.ex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)