Fix Rubocop offenses

This commit is contained in:
Sebastian Serth
2024-06-16 14:16:45 +02:00
committed by Sebastian Serth
parent a3a0322540
commit 4e1e8c0f4d
3 changed files with 6 additions and 7 deletions

View File

@ -10,7 +10,7 @@ class AddNormalizedScoreAndSubmissionToUserExerciseFeedback < ActiveRecord::Migr
UserExerciseFeedback.find_each do |uef|
latest_submission = Submission
.where(user_id: uef.user_id, user_type: uef.user_type, exercise_id: uef.exercise_id)
.where('created_at < ?', uef.updated_at)
.where(created_at: ...uef.updated_at)
.order(created_at: :desc).first
# In the beginning, CodeOcean allowed feedback for exercises while viewing an RfC. As a RfC