Description:
changed test request uploaded dir to data/test_request/input git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@86 6386c4cd-e34a-4fa8-8920-d93eb39b512e
Commit status:
[Not Reviewed]
References:
Comments:
0 Commit comments 0 Inline Comments
Unresolved TODOs:
There are no unresolved TODOs
Add another comment

r38:d108852b6289 - - 2 files changed: 4 inserted, 2 deleted

@@ -41,8 +41,9
41 41
42 42 protected
43 43 def self.input_file_name(user,problem)
44 + problem_name = (problem!=nil) ? problem.name : ""
44 45 begin
45 - tmpname = UPLOADED_INPUT_FILE_DIR + "/#{user.login}/#{problem.name}/#{rand(10000)}"
46 + tmpname = TEST_REQUEST_INPUT_FILE_DIR + "/#{user.login}/#{problem_name}/#{rand(10000)}"
46 47 end while File.exists?(tmpname)
47 48 tmpname
48 49 end
@@ -59,4 +59,5
59 59
60 60 # Include your application configuration below
61 61
62 - UPLOADED_INPUT_FILE_DIR = RAILS_ROOT + '/upload'
62 + TEST_REQUEST_INPUT_FILE_DIR = RAILS_ROOT + '/data/test_request/input'
63 + TEST_REQUEST_OUTPUT_FILE_DIR = RAILS_ROOT + '/data/test_request/output'
You need to be logged in to leave comments. Login now