Skip to content

Commit

Permalink
Remove new in series scope
Browse files Browse the repository at this point in the history
  • Loading branch information
jorg-vr committed Jun 26, 2024
1 parent e3076ee commit 9c7369d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/models/submission.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ class Submission < ApplicationRecord
scope :before_deadline, ->(deadline) { where(submissions: { created_at: ...deadline }) }
scope :in_time_range, ->(start_date, end_date) { where(created_at: start_date.to_datetime..end_date.to_datetime) }
scope :in_course, ->(course) { where course_id: course&.id }
scope :in_series, ->(series) { where series_id: series&.id }
scope :in_series, ->(series) { where(course_id: series.course.id).where(exercise: series.exercises) }
scope :of_judge, ->(judge) { where(exercise_id: Exercise.where(judge_id: judge.id)) }
scope :from_students, ->(course) { where(user: course.enrolled_members) }
Expand Down

0 comments on commit 9c7369d

Please sign in to comment.