Skip to content

Commit

Permalink
Fixes tests
Browse files Browse the repository at this point in the history
  • Loading branch information
doug-salvati committed Sep 22, 2017
1 parent ff73c2e commit 464617b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/file_uploader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def open_spreadsheet(file)
case File.extname(file.original_filename)
when '.csv', '.txt', '.text' then convert(file.path)
when '.xls', '.xlsx', '.ods'
system "libreoffice5.3 --calc --headless --nologo --invisible --convert-to csv #{file.path} --outdir /tmp/rsense > /dev/null 2>&1"
system "libreoffice --calc --headless --nologo --invisible --convert-to csv #{file.path} --outdir /tmp/rsense > /dev/null 2>&1"
@converted_csv = "/tmp/rsense/#{file.path.gsub('/tmp/', '')}.csv"
convert(@converted_csv)
when '.gpx' then GpxParser.new.convert(file.path)
Expand Down

0 comments on commit 464617b

Please sign in to comment.