Description:
[grader] change messages
git-svn-id: http://theory.cpe.ku.ac.th/grader/judge/trunk/scripts@242 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Diff options:
Comments:
0 Commit comments
0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
r58:b32b8de97eae - - 1 file changed: 8 inserted, 2 deleted
@@ -99,14 +99,20 | |||
|
99 | 99 | points = result[:points] |
|
100 | 100 | submission.points = points |
|
101 | 101 | comment = @config.report_comment(result[:comment]) |
|
102 | + | |
|
103 | + # | |
|
104 | + # TODO: FIX THIS MESSAGE | |
|
105 | + # | |
|
102 | 106 | if problem == nil |
|
103 | 107 | submission.grader_comment = 'PASSED: ' + comment + '(problem is nil)' |
|
104 | 108 | elsif points == problem.full_score |
|
105 | - submission.grader_comment = 'PASSED: ' + comment | |
|
109 | + #submission.grader_comment = 'PASSED: ' + comment | |
|
110 | + submission.grader_comment = comment | |
|
106 | 111 | elsif result[:comment].chomp =~ /^[\[\]P]+$/ |
|
107 | 112 | submission.grader_comment = 'PASSED: ' + comment + '(inconsistent score)' |
|
108 | 113 | else |
|
109 | - submission.grader_comment = 'FAILED: ' + comment | |
|
114 | + #submission.grader_comment = 'FAILED: ' + comment | |
|
115 | + submission.grader_comment = comment | |
|
110 | 116 | end |
|
111 | 117 | submission.compiler_message = result[:cmp_msg] or '' |
|
112 | 118 | submission.save |
You need to be logged in to leave comments.
Login now