From 6364c19e17531859dc6da942463bff51c9ab5a1d Mon Sep 17 00:00:00 2001 From: huchenlei Date: Tue, 20 Aug 2024 15:41:41 -0400 Subject: [PATCH] nit --- server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index 841e29c27..0864d9dd8 100644 --- a/server.py +++ b/server.py @@ -431,7 +431,6 @@ class PromptServer(): 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 '' info['python_module'] = getattr(obj_class, "RELATIVE_PYTHON_MODULE", "nodes") - info['deprecated'] = getattr(obj_class, "DEPRECATED", False) info['category'] = 'sd' if hasattr(obj_class, 'OUTPUT_NODE') and obj_class.OUTPUT_NODE == True: info['output_node'] = True @@ -443,6 +442,9 @@ class PromptServer(): if hasattr(obj_class, 'OUTPUT_TOOLTIPS'): info['output_tooltips'] = obj_class.OUTPUT_TOOLTIPS + + if getattr(obj_class, "DEPRECATED", False): + info['deprecated'] = True return info @routes.get("/object_info")