From 824436bb5dcca97f58b855a0b97e2966c10a4361 Mon Sep 17 00:00:00 2001 From: Christoph Helma Date: Mon, 30 May 2011 10:11:34 +0000 Subject: cached predictions fixed --- application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'application.rb') diff --git a/application.rb b/application.rb index 75d4c70..4d00475 100644 --- a/application.rb +++ b/application.rb @@ -350,7 +350,7 @@ post '/predict/?' do # post chemical name to model confidence = nil title = nil db_activities = [] - lazar = OpenTox::Model::Lazar.new model.uri + lazar = OpenTox::Model::Lazar.find model.uri, subjectid prediction_dataset_uri = lazar.run({:compound_uri => @compound.uri, :subjectid => subjectid}) prediction_dataset = OpenTox::LazarPrediction.find(prediction_dataset_uri, subjectid) if prediction_dataset.metadata[OT.hasSource].match(/dataset/) -- cgit v1.2.3