Ver Fonte

make process_boolean_tag case insensitive

w-e-w há 1 ano atrás
pai
commit
9bc3332d86
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      scripts/prompts_from_file.py

+ 1 - 1
scripts/prompts_from_file.py

@@ -34,7 +34,7 @@ def process_float_tag(tag):
 
 
 def process_boolean_tag(tag):
 def process_boolean_tag(tag):
     """true|false"""
     """true|false"""
-    return True if (tag == "true") else False
+    return True if (tag.lower() == "true") else False
 
 
 
 
 prompt_tags = {
 prompt_tags = {