summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormguetlein <martin.guetlein@gmail.com>2011-01-14 14:58:43 +0100
committermguetlein <martin.guetlein@gmail.com>2011-01-14 14:58:43 +0100
commitc8ece50aeac195ecb9bf3c5f3cff2d408b19b6e6 (patch)
treed4a88503dae3ab24ffac928cef838461eca21904
parent433b2cd242b94e2b744f5fb40b6196658b146653 (diff)
set percentage completed
-rw-r--r--lazar.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lazar.rb b/lazar.rb
index 9bfeedf..de94d8b 100644
--- a/lazar.rb
+++ b/lazar.rb
@@ -91,8 +91,8 @@ post '/:id/?' do
halt 500, "Prediction of #{compound_uri} with #{@lazar.uri} failed."
end
elsif dataset_uri
- task = OpenTox::Task.create("Predict dataset",url_for("/#{@lazar.id}", :full)) do
- @lazar.predict_dataset(dataset_uri, subjectid).uri
+ task = OpenTox::Task.create("Predict dataset",url_for("/#{@lazar.id}", :full)) do |task|
+ @lazar.predict_dataset(dataset_uri, subjectid, task).uri
end
halt 503,task.uri+"\n" if task.status == "Cancelled"
halt 202,task.uri