This commit is contained in:
mrT23
2023-11-12 16:37:53 +02:00
parent 727eea2b62
commit e9891fc530
6 changed files with 41 additions and 41 deletions

View File

@ -341,7 +341,7 @@ def set_custom_labels(variables):
# final_labels += f" - {k} ({v['description']})\n"
#variables["custom_labels"] = final_labels
#variables["custom_labels_examples"] = f" - {list(labels.keys())[0]}"
variables["custom_labels_class"] = "class Labels(Enum):"
variables["custom_labels_class"] = "class Label(Enum):"
for k, v in labels.items():
variables["custom_labels_class"] += f"\n {k.lower().replace(' ','_')} = '{k}' # {v['description']}"