Description:
fix hof when submissions is not graded
fix db/seed
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r465:5f1da68a8831 - - 3 files changed: 2 inserted, 2 deleted
@@ -118,6 +118,7 | |||||
|
118 | d = (DateTime.now.in_time_zone - sub.submitted_at) / 24 / 60 / 60 |
|
118 | d = (DateTime.now.in_time_zone - sub.submitted_at) / 24 / 60 / 60 |
|
119 | @histogram[:data][d.to_i] += 1 if d < range |
|
119 | @histogram[:data][d.to_i] += 1 if d < range |
|
120 |
|
120 | ||
|
|
121 | + next unless sub.points | ||
|
121 | @summary[:count] += 1 |
|
122 | @summary[:count] += 1 |
|
122 | user[sub.user_id] = [user[sub.user_id], (sub.points >= @problem.full_score) ? 1 : 0].max |
|
123 | user[sub.user_id] = [user[sub.user_id], (sub.points >= @problem.full_score) ? 1 : 0].max |
|
123 |
|
124 |
@@ -239,7 +239,6 | |||||
|
239 | t.boolean "activated", :default => false |
|
239 | t.boolean "activated", :default => false |
|
240 | t.datetime "created_at" |
|
240 | t.datetime "created_at" |
|
241 | t.datetime "updated_at" |
|
241 | t.datetime "updated_at" |
|
242 | - t.string "section" |
|
||
|
243 | end |
|
242 | end |
|
244 |
|
243 | ||
|
245 | add_index "users", ["login"], :name => "index_users_on_login", :unique => true |
|
244 | add_index "users", ["login"], :name => "index_users_on_login", :unique => true |
@@ -100,7 +100,7 | |||||
|
100 | :value_type => 'boolean', |
|
100 | :value_type => 'boolean', |
|
101 | :default_value => 'true', |
|
101 | :default_value => 'true', |
|
102 | :description => 'If this option is true, users can change their settings' |
|
102 | :description => 'If this option is true, users can change their settings' |
|
103 | - } |
|
103 | + }, |
|
104 |
|
104 | ||
|
105 | # If Configuration['contest.test_request.early_timeout'] is true |
|
105 | # If Configuration['contest.test_request.early_timeout'] is true |
|
106 | # the user will not be able to use test request at 30 minutes |
|
106 | # the user will not be able to use test request at 30 minutes |
You need to be logged in to leave comments.
Login now