Improve task output
This commit is contained in:
@ -43,7 +43,9 @@ namespace :detect_exercise_anomalies do
|
|||||||
end
|
end
|
||||||
|
|
||||||
if anomalies.length > 0 and not collection.user.nil?
|
if anomalies.length > 0 and not collection.user.nil?
|
||||||
puts "\t\tSending E-Mail..."
|
puts "\t\tAnomalies: #{anomalies}\n"
|
||||||
|
|
||||||
|
puts "\t\tSending E-Mail to author (#{collection.user.displayname} <#{collection.user.email}>)..."
|
||||||
UserMailer.exercise_anomaly_detected(collection, anomalies).deliver_now
|
UserMailer.exercise_anomaly_detected(collection, anomalies).deliver_now
|
||||||
|
|
||||||
puts "\t\tResetting flag..."
|
puts "\t\tResetting flag..."
|
||||||
|
Reference in New Issue
Block a user