app/models/guide.rb in mumuki-laboratory-5.5.0 vs app/models/guide.rb in mumuki-laboratory-5.6.0
- old
+ new
@@ -35,10 +35,10 @@
def pending_exercises(user)
exercises.
joins("left join public.assignments assignments
on assignments.exercise_id = exercises.id
and assignments.submitter_id = #{user.id}
- and assignments.status = #{Mumuki::Laboratory::Status::Passed.to_i}").
+ and assignments.submission_status = #{Mumuki::Laboratory::Status::Submission::Passed.to_i}").
where('assignments.id is null')
end
def next_exercise(user)
pending_exercises(user).order('public.exercises.number asc').first