From dd6c1b9014ea3b53e10a42735d09bd948675d5ab Mon Sep 17 00:00:00 2001 From: MaraScott Date: Mon, 16 Sep 2024 11:50:51 +0200 Subject: [PATCH] add custom label --- server.py | 1 + 1 file changed, 1 insertion(+) diff --git a/server.py b/server.py index a2c078e4053..b2dcf9ed6b6 100644 --- a/server.py +++ b/server.py @@ -522,6 +522,7 @@ def node_info(node_class): info['output'] = obj_class.RETURN_TYPES info['output_is_list'] = obj_class.OUTPUT_IS_LIST if hasattr(obj_class, 'OUTPUT_IS_LIST') else [False] * len(obj_class.RETURN_TYPES) info['output_name'] = obj_class.RETURN_NAMES if hasattr(obj_class, 'RETURN_NAMES') else info['output'] + info['output_label'] = obj_class.RETURN_LABELS if hasattr(obj_class, 'RETURN_LABELS') else info['output_name'] info['name'] = node_class info['display_name'] = nodes.NODE_DISPLAY_NAME_MAPPINGS[node_class] if node_class in nodes.NODE_DISPLAY_NAME_MAPPINGS.keys() else node_class info['description'] = obj_class.DESCRIPTION if hasattr(obj_class,'DESCRIPTION') else ''