From c13727354eda6a71e0cb2b583b4e04efc1ee8a1e Mon Sep 17 00:00:00 2001 From: root Date: Fri, 25 Feb 2011 17:53:25 +0000 Subject: ohm/redis backend --- lazar.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lazar.rb') diff --git a/lazar.rb b/lazar.rb index 2f3b126..74680dd 100644 --- a/lazar.rb +++ b/lazar.rb @@ -85,7 +85,7 @@ post '/:id/?' do response['Content-Type'] = 'text/uri-list' if compound_uri - cache = PredictionCache.first(:model_uri => @lazar.uri, :compound_uri => compound_uri) + cache = PredictionCache.find(:model_uri => @lazar.uri, :compound_uri => compound_uri).first return cache.dataset_uri if cache and uri_available?(cache.dataset_uri) begin prediction_uri = @lazar.predict(compound_uri,true,@subjectid).uri -- cgit v1.2.3