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 | 268 | runner.grade_problem(prob) |
|
269 | 269 | end |
|
270 | 270 | end |
|
271 | 271 | |
|
272 | 272 | if options[:report] |
|
273 | 273 | result_collector.print_report_by_user |
|
274 | 274 | end |
|
275 | 275 | |
|
276 | 276 | when "contest" |
|
277 | 277 | # always use dry run when grading during contest |
|
278 | 278 | contest_name = ARGV.shift |
|
279 | 279 | |
|
280 | - options[:dry_run] = true | |
|
280 | + dry_run = options[:dry_run] = true | |
|
281 | 281 | |
|
282 | 282 | contest = Contest.find_by_name(contest_name) |
|
283 | 283 | if contest==nil |
|
284 | 284 | puts "cannot find contest: #{contest_name}" |
|
285 | 285 | exit(0) |
|
286 | 286 | end |
|
287 | 287 | |
|
288 | 288 | if options[:report] |
|
289 | 289 | result_collector = ResultCollector.new |
|
290 | 290 | else |
|
291 | 291 | result_collector = nil |
|
292 | 292 | end |
You need to be logged in to leave comments.
Login now