summaryrefslogtreecommitdiff
path: root/lib/model.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/model.rb')
-rw-r--r--lib/model.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/model.rb b/lib/model.rb
index 9fbd90f..3764ee2 100644
--- a/lib/model.rb
+++ b/lib/model.rb
@@ -27,7 +27,7 @@ end
post "/model/:id/?" do
identifier = params[:identifier].split(",")
- compounds = identifier.collect{ |i| Compound.from_smiles i.strip }
+ compounds = identifier.collect{ |i| Compound.from_smiles i.strip.gsub(/\A"|"\Z/,'') }
model = Model::Validation.find params[:id]
batch = {}
compounds.each do |compound|