Description:
[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
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r36:79248d481294 - - 1 file changed: 1 inserted, 1 deleted

@@ -29,7 +29,7
29 puts "user: #{u.login}"
29 puts "user: #{u.login}"
30 last_sub = Submission.find(:first,
30 last_sub = Submission.find(:first,
31 :conditions => "user_id = #{u.id} and " +
31 :conditions => "user_id = #{u.id} and " +
32 - "problem_id = #{prob.id}",
32 + "problem_id = #{problem.id}",
33 :order => 'submitted_at DESC')
33 :order => 'submitted_at DESC')
34 if last_sub!=nil
34 if last_sub!=nil
35 @engine.grade(last_sub)
35 @engine.grade(last_sub)
You need to be logged in to leave comments. Login now