We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8fe360a commit 5e72daeCopy full SHA for 5e72dae
app/models/unit.rb
@@ -2245,7 +2245,14 @@ def tasks_for_moderation(user)
2245
if mt.escalation?
2246
[task, Time.zone.at(0)]
2247
else
2248
- tutor_comments = task.comments.select { |c| c.user == task.tutor }
+ # Ignore automated comments sent from the tutor
2249
+ tutor_comments = task.comments.select do |c|
2250
+ c.user == task.tutor &&
2251
+ c.content_type != "assessment" &&
2252
+ !c.comment&.include?("**Automated comment**: Some tests did not pass for this submission.") &&
2253
+ !c.comment&.include?("**Automated Comment**: Something went wrong with your submission")
2254
+ end
2255
+
2256
next nil if tutor_comments.empty?
2257
2258
most_recent = tutor_comments.max_by(&:created_at)
0 commit comments