Description:
fixed task info error in analysis mode
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r290:8a3bce2f983b - - 1 file changed: 5 inserted, 5 deleted
@@ -10,7 +10,7 | |||||
|
10 |
|
10 | ||
|
11 | cattr_accessor :cache |
|
11 | cattr_accessor :cache |
|
12 | cattr_accessor :config_cache |
|
12 | cattr_accessor :config_cache |
|
13 | - cattr_accessor :task_grading_info |
|
13 | + cattr_accessor :task_grading_info_cache |
|
14 | cattr_accessor :contest_time_str |
|
14 | cattr_accessor :contest_time_str |
|
15 | cattr_accessor :contest_time |
|
15 | cattr_accessor :contest_time |
|
16 |
|
16 | ||
@@ -18,7 +18,7 | |||||
|
18 | Configuration.cache = false |
|
18 | Configuration.cache = false |
|
19 |
|
19 | ||
|
20 | Configuration.config_cache = nil |
|
20 | Configuration.config_cache = nil |
|
21 | - Configuration.task_grading_info = nil |
|
21 | + Configuration.task_grading_info_cache = nil |
|
22 |
|
22 | ||
|
23 | def self.get(key) |
|
23 | def self.get(key) |
|
24 | if Configuration.cache |
|
24 | if Configuration.cache |
@@ -88,10 +88,10 | |||||
|
88 | end |
|
88 | end |
|
89 |
|
89 | ||
|
90 | def self.task_grading_info |
|
90 | def self.task_grading_info |
|
91 | - if Configuration.task_grading_info==nil |
|
91 | + if Configuration.task_grading_info_cache==nil |
|
92 | read_grading_info |
|
92 | read_grading_info |
|
93 | end |
|
93 | end |
|
94 | - return Configuration.task_grading_info |
|
94 | + return Configuration.task_grading_info_cache |
|
95 | end |
|
95 | end |
|
96 |
|
96 | ||
|
97 | def self.standard_mode? |
|
97 | def self.standard_mode? |
@@ -175,7 +175,7 | |||||
|
175 |
|
175 | ||
|
176 | def self.read_grading_info |
|
176 | def self.read_grading_info |
|
177 | f = File.open(TASK_GRADING_INFO_FILENAME) |
|
177 | f = File.open(TASK_GRADING_INFO_FILENAME) |
|
178 | - Configuration.task_grading_info = YAML.load(f) |
|
178 | + Configuration.task_grading_info_cache = YAML.load(f) |
|
179 | f.close |
|
179 | f.close |
|
180 | end |
|
180 | end |
|
181 |
|
181 |
You need to be logged in to leave comments.
Login now