Description:
(previous) new way for default script files
git-svn-id: http://theory.cpe.ku.ac.th/grader/cli/trunk/scripts@26 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r13:f103b0ea2e2a - - 1 file changed: 1 inserted, 1 deleted
@@ -204,13 +204,13 | |||||
|
204 | end |
|
204 | end |
|
205 | users = User.find(:all) |
|
205 | users = User.find(:all) |
|
206 | users.each do |u| |
|
206 | users.each do |u| |
|
207 | puts "user: #{u.login}" |
|
207 | puts "user: #{u.login}" |
|
208 | last_sub = Submission.find(:first, |
|
208 | last_sub = Submission.find(:first, |
|
209 | :conditions => "user_id = #{u.id} and " + |
|
209 | :conditions => "user_id = #{u.id} and " + |
|
210 | - "problem_id = #{prob.id}", |
|
210 | + "problem_id = #{prob.id}", |
|
211 | :order => 'submitted_at DESC') |
|
211 | :order => 'submitted_at DESC') |
|
212 | if last_sub!=nil |
|
212 | if last_sub!=nil |
|
213 | grade(last_sub.id) |
|
213 | grade(last_sub.id) |
|
214 | end |
|
214 | end |
|
215 | end |
|
215 | end |
|
216 | end |
|
216 | end |
You need to be logged in to leave comments.
Login now