# HG changeset patch # User Jittat Fakcharoenphol # Date 2015-02-02 06:10:18 # Node ID d79d1e42bcbb415dc25f6c8c62dba6a613611f44 # Parent aef66acd0ee0831637738f7d76b247ac3038ed32 updated graded_at fields for graded submissions diff --git a/script/contest_grade_prob.rb b/script/contest_grade_prob.rb --- a/script/contest_grade_prob.rb +++ b/script/contest_grade_prob.rb @@ -39,6 +39,7 @@ full_score = result[:full_score] sub.points = result[:score]*100 / full_score sub.grader_comment = result[:msg] + sub.graded_at = Time.now.gmtime sub.save end end