diff options
author | gebele <gebele@in-silico.ch> | 2018-06-28 12:11:52 +0000 |
---|---|---|
committer | gebele <gebele@in-silico.ch> | 2018-06-28 12:11:52 +0000 |
commit | 01ffd80c658d4f33aff4d537a6e1ec09e8a7cd4b (patch) | |
tree | 24923fddba6f70b13e1cb6034b821a3a78a542d2 /application.rb | |
parent | 6b5463e9b0b4dfb627a60896d724e3fbbb36c32c (diff) |
removed doubled insertion
Diffstat (limited to 'application.rb')
-rw-r--r-- | application.rb | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/application.rb b/application.rb index 523eb10..5acd9cc 100644 --- a/application.rb +++ b/application.rb @@ -172,7 +172,6 @@ get '/predict/csv/:task/:model/:filename/?' do task = Task.find params[:task].to_s m = Model::Validation.find params[:model].to_s unless params[:model] == "Cramer" dataset = Batch.find_by(:name => filename) - @ids = dataset.ids warnings = dataset.warnings.blank? ? nil : dataset.warnings.join("\n") unless warnings.nil? keys_array = [] @@ -197,11 +196,6 @@ get '/predict/csv/:task/:model/:filename/?' do header = lines.shift out = "" lines.each_with_index do |line,idx| - if !@ids.blank? - arr = line.split(",") - arr.insert(1, @ids[idx]) - line = arr.join(",") - end if @dups[idx+1] out << "#{line.tr("\n","")},#{@dups[idx+1]}" else |