Description:
fixed dry option bug in contest mode
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r95:8569b91a13b7 - - 1 file changed: 1 inserted, 1 deleted
@@ -268,25 +268,25 | |||||
|
268 | runner.grade_problem(prob) |
|
268 | runner.grade_problem(prob) |
|
269 | end |
|
269 | end |
|
270 | end |
|
270 | end |
|
271 |
|
271 | ||
|
272 | if options[:report] |
|
272 | if options[:report] |
|
273 | result_collector.print_report_by_user |
|
273 | result_collector.print_report_by_user |
|
274 | end |
|
274 | end |
|
275 |
|
275 | ||
|
276 | when "contest" |
|
276 | when "contest" |
|
277 | # always use dry run when grading during contest |
|
277 | # always use dry run when grading during contest |
|
278 | contest_name = ARGV.shift |
|
278 | contest_name = ARGV.shift |
|
279 |
|
279 | ||
|
280 | - options[:dry_run] = true |
|
280 | + dry_run = options[:dry_run] = true |
|
281 |
|
281 | ||
|
282 | contest = Contest.find_by_name(contest_name) |
|
282 | contest = Contest.find_by_name(contest_name) |
|
283 | if contest==nil |
|
283 | if contest==nil |
|
284 | puts "cannot find contest: #{contest_name}" |
|
284 | puts "cannot find contest: #{contest_name}" |
|
285 | exit(0) |
|
285 | exit(0) |
|
286 | end |
|
286 | end |
|
287 |
|
287 | ||
|
288 | if options[:report] |
|
288 | if options[:report] |
|
289 | result_collector = ResultCollector.new |
|
289 | result_collector = ResultCollector.new |
|
290 | else |
|
290 | else |
|
291 | result_collector = nil |
|
291 | result_collector = nil |
|
292 | end |
|
292 | end |
You need to be logged in to leave comments.
Login now