Description:
fixed import error (thanks K.Siththa)
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r274:25b80877ebce - - 1 file changed: 2 inserted, 0 deleted

@@ -136,16 +136,18
136 136 end
137 137 end
138 138
139 139 def import_problem_pdf(dirname)
140 140 pdf_files = Dir["#{dirname}/*.pdf"]
141 141 if pdf_files.length != 0
142 142 filename = pdf_files[0]
143 143 out_filename = "#{Problem.download_file_basedir}/#{@problem.name}.pdf"
144 144 File.rename(filename, out_filename)
145 145 @problem.description_filename = "#{@problem.name}.pdf"
146 146 @problem.save
147 147 return "\nProblem pdf imported from #{filename}."
148 + else
149 + return ""
148 150 end
149 151 end
150 152
151 153 end
You need to be logged in to leave comments. Login now