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

@@ -26,13 +26,13
26 26 def grade_problem(problem)
27 27 users = User.find(:all)
28 28 users.each do |u|
29 29 puts "user: #{u.login}"
30 30 last_sub = Submission.find(:first,
31 31 :conditions => "user_id = #{u.id} and " +
32 - "problem_id = #{prob.id}",
32 + "problem_id = #{problem.id}",
33 33 :order => 'submitted_at DESC')
34 34 if last_sub!=nil
35 35 @engine.grade(last_sub)
36 36 end
37 37 end
38 38 end
You need to be logged in to leave comments. Login now