# HG changeset patch # User jittat # Date 2008-03-21 12:32:31 # Node ID 79248d4812942fef89c511ad24422bcfe7eca3b7 # Parent 8a388d27ae0cda4aa5907398ef56c48db1566e44 [grader] fixed bug in runner for prob git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@137 6386c4cd-e34a-4fa8-8920-d93eb39b512e diff --git a/lib/runner.rb b/lib/runner.rb --- a/lib/runner.rb +++ b/lib/runner.rb @@ -29,7 +29,7 @@ puts "user: #{u.login}" last_sub = Submission.find(:first, :conditions => "user_id = #{u.id} and " + - "problem_id = #{prob.id}", + "problem_id = #{problem.id}", :order => 'submitted_at DESC') if last_sub!=nil @engine.grade(last_sub)