diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-07-14 13:56:50 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-07-14 13:56:50 +0200 |
commit | e910d126b452f3d9ca8a20107aee04ceece9bb11 (patch) | |
tree | fe5c0bed4979b67dda3406ab21d9c08e6c218605 | |
parent | 82186092285dc24f255039ff3263f7e78e9bfdd1 (diff) |
model creation working, validation report generation fails for large datasets
-rw-r--r-- | application.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 5fd664b..6a7e4c6 100644 --- a/application.rb +++ b/application.rb @@ -22,7 +22,10 @@ get %r{/(.+)} do |inchi| # catches all remaining get requests OpenTox::Compound.new(:inchi => inchi).sdf when "image/gif" response['Content-Type'] = "image/gif" - OpenTox::Compound.new(:inchi => inchi).image + OpenTox::Compound.new(:inchi => inchi).gif + when "image/png" + response['Content-Type'] = "image/png" + OpenTox::Compound.new(:inchi => inchi).png when "text/plain" response['Content-Type'] = "text/plain" uri = File.join CACTUS_URI,inchi,"names" |