diff options
author | root <root@ot-dev.in-silico.ch> | 2011-02-25 17:53:25 +0000 |
---|---|---|
committer | root <root@ot-dev.in-silico.ch> | 2011-02-25 17:53:25 +0000 |
commit | c13727354eda6a71e0cb2b583b4e04efc1ee8a1e (patch) | |
tree | 062b38b0efa8a3f7eb5b89e24413884dd8af1fd0 /lazar.rb | |
parent | b4513bfbf3a2d3e0c34de0765d4ea604e2f1500c (diff) |
ohm/redis backend
Diffstat (limited to 'lazar.rb')
-rw-r--r-- | lazar.rb | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |