more keys

This commit is contained in:
lllyasviel
2023-10-20 16:24:42 -07:00
parent 4479fbaaef
commit 650f32b920
2 changed files with 20 additions and 9 deletions
+3 -3
View File
@@ -29,14 +29,14 @@ def dump_english_config(components):
all_texts = []
for c in components:
label = getattr(c, 'label', None)
# value = getattr(c, 'value', None)
value = getattr(c, 'value', None)
choices = getattr(c, 'choices', None)
info = getattr(c, 'info', None)
if isinstance(label, str):
all_texts.append(label)
# if isinstance(value, str):
# all_texts.append(value)
if isinstance(value, str):
all_texts.append(value)
if isinstance(info, str):
all_texts.append(info)
if isinstance(choices, list):