From 44065a31bbaa25a9906761a227989cdbfb90652a Mon Sep 17 00:00:00 2001 From: Mike Tigas Date: Wed, 10 Jul 2013 12:45:50 -0400 Subject: [PATCH] fix job file paths to point to the copy of PDF we saved to "target dir" (for consistency). fixes some ENOERR No Such File Or Directory errors with regard to table detector --- webapp/tabula_web.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/tabula_web.rb b/webapp/tabula_web.rb index cff85709..58a336f2 100644 --- a/webapp/tabula_web.rb +++ b/webapp/tabula_web.rb @@ -157,7 +157,7 @@ def is_valid_pdf?(path) :id => file_id) if req.params['autodetect-tables'] STDERR.puts req.params['autodetect-tables'] - detect_tables_job = DetectTablesJob.create(:filename => original_filename, + detect_tables_job = DetectTablesJob.create(:filename => file, :output_dir => file_path) else detect_tables_job = nil