summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-04-06 10:13:42 +0200
committermr <mr@mrautenberg.de>2011-04-06 10:13:42 +0200
commit6322fbb063dab874b3d170c8b26d453c9e2f5160 (patch)
treea81557ff7a09541d1f3d6d73714e423024c41daf
parentdcc070e630d7864f0ea735fe45b0b8304276424a (diff)
fix missing subjetid send to Lazar.create
-rw-r--r--application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/application.rb b/application.rb
index 400109b..14194ab 100644
--- a/application.rb
+++ b/application.rb
@@ -225,7 +225,7 @@ post '/models' do # create a new model
@model.update :warnings => @dataset.metadata[OT.Warnings] unless @dataset.metadata[OT.Warnings].empty?
task.progress(15)
begin
- lazar = OpenTox::Model::Lazar.create(:dataset_uri => @dataset.uri, :subjectid => subjectid)
+ lazar = OpenTox::Model::Lazar.create({:dataset_uri => @dataset.uri, :subjectid => subjectid})
rescue => e
error "Model creation failed with '#{e.message}'. Please check if the input file is in a valid #{link_to "Excel", "/excel_format"} or #{link_to "CSV", "/csv_format"} format."
end