Description:
remove lingering debug info
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r786:4e030454953c - - 3 files changed: 0 inserted, 6 deleted
@@ -151,13 +151,12 | |||
|
151 | 151 | |
|
152 | 152 | def is_request_ip_allowed? |
|
153 | 153 | unless GraderConfiguration[WHITELIST_IGNORE_CONF_KEY] |
|
154 | 154 | user_ip = IPAddr.new(request.remote_ip) |
|
155 | 155 | |
|
156 | 156 | GraderConfiguration[WHITELIST_IP_CONF_KEY].delete(' ').split(',').each do |ips| |
|
157 | - puts "ip is #{ips}, user ip is #{user_ip}" | |
|
158 | 157 | allow_ips = IPAddr.new(ips) |
|
159 | 158 | if allow_ips.include?(user_ip) |
|
160 | 159 | return true |
|
161 | 160 | end |
|
162 | 161 | end |
|
163 | 162 | return false |
@@ -72,15 +72,12 | |||
|
72 | 72 | end |
|
73 | 73 | |
|
74 | 74 | |
|
75 | 75 | def get_latest_submission_status |
|
76 | 76 | @problem = Problem.find(params[:pid]) |
|
77 | 77 | @submission = Submission.find_last_by_user_and_problem(params[:uid],params[:pid]) |
|
78 | - puts User.find(params[:uid]).login | |
|
79 | - puts Problem.find(params[:pid]).name | |
|
80 | - puts 'nil' unless @submission | |
|
81 | 78 | respond_to do |format| |
|
82 | 79 | format.js |
|
83 | 80 | end |
|
84 | 81 | end |
|
85 | 82 | |
|
86 | 83 | # GET /submissions/:id/rejudge |
@@ -12,14 +12,12 | |||
|
12 | 12 | %th.text-right Total |
|
13 | 13 | %th.text-right Passed |
|
14 | 14 | %tbody |
|
15 | 15 | - sum = Array.new(@problems.count+1,0) |
|
16 | 16 | - nonzero = Array.new(@problems.count+1,0) |
|
17 | 17 | - full = Array.new(@problems.count+1,0) |
|
18 | - - puts @scorearray | |
|
19 | - - puts @problems.count | |
|
20 | 18 | - @scorearray.each do |sc| |
|
21 | 19 | %tr |
|
22 | 20 | - total,num_passed = 0,0 |
|
23 | 21 | - sc.each_index do |i| |
|
24 | 22 | - if i == 0 |
|
25 | 23 | %td= link_to sc[i].login, stat_user_path(sc[i]) |
You need to be logged in to leave comments.
Login now