diff options
-rw-r--r-- | application.rb | 3 | ||||
-rw-r--r-- | views/layout.haml | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/application.rb b/application.rb index 532135c..6eac935 100644 --- a/application.rb +++ b/application.rb @@ -211,6 +211,9 @@ class Application < Sinatra::Base result = pubchem_search File.join(PUG_URI, "compound", "listkey", listkey, "cids", "JSON") end result["IdentifierList"]["CID"].delete params[:cid].to_i + #result["IdentifierList"]["CID"].each do |cid| + # @result << cid unless assays(cid,"active").empty? and assays(cid,"inactive").empty? + #end @result = result["IdentifierList"]["CID"].to_json end diff --git a/views/layout.haml b/views/layout.haml index 19d972a..8ca6a2d 100644 --- a/views/layout.haml +++ b/views/layout.haml @@ -38,7 +38,7 @@ } %body - %h1 AOP read across + %h1 PubChem read across %form{:name => "form", :action => '/search', :method => "GET"} %fieldset %label{:for => 'name'} Compound name: |