diff options
author | Christoph Helma <helma@in-silico.ch> | 2010-07-02 12:43:50 +0200 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2010-07-02 12:43:50 +0200 |
commit | 2fbeb70a87746138659a8b02ce66bf6f52c6cdf3 (patch) | |
tree | 262452c4310abcc3fb452fcb5c140d3d1d0c6771 | |
parent | aab6b86d0af3af25c9a29cbaed55e52ac9e8f8da (diff) |
Excel export for regression datasets fixed
-rwxr-xr-x | application.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/application.rb b/application.rb index 6482935..cb5595c 100755 --- a/application.rb +++ b/application.rb @@ -82,8 +82,12 @@ get '/:id' do YAML.load(dataset.yaml).data.each do |line| begin smilestring = RestClient.get(line[0], :accept => 'chemical/x-daylight-smiles').to_s - line[1][0] ? val = line[1][0].first[1] ? "1" : "0" : val = "" - sheet.update_row(i, smilestring , val) + if line[1] + val = line[1][0].first[1] + LOGGER.debug val + #line[1][0] ? val = line[1][0].first[1] #? "1" : "0" : val = "" + sheet.update_row(i, smilestring , val) + end i+=1 rescue end |