summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.rb b/helper.rb
index d423285..fd3b9f4 100644
--- a/helper.rb
+++ b/helper.rb
@@ -34,7 +34,7 @@ helpers do
output["converted_model_unit"] = converted_model_unit
if prediction[:value]
- inApp = (prediction[:warnings].join(" ") =~ /Cannot/ ? "no" : (prediction[:warnings].join(" ") =~ /may|Insufficient/ ? "maybe" : "yes"))
+ inApp = (prediction[:warnings].join(" ") =~ /Cannot/ ? "no" : (prediction[:warnings].join(" ") =~ /may|Insufficient|Weighted/ ? "maybe" : "yes"))
if prediction[:info] =~ /\b(identical)\b/i
prediction[:info] = "This compound was part of the training dataset. All information "\
"from this compound was removed from the training data before the "\