Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ComfyUI
Commits
694c705f
Commit
694c705f
authored
Sep 07, 2023
by
Chris
Browse files
get class description
parent
adb9eb94
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
server.py
server.py
+1
-1
No files found.
server.py
View file @
694c705f
...
...
@@ -398,7 +398,7 @@ class PromptServer():
info
[
'output_name'
]
=
obj_class
.
RETURN_NAMES
if
hasattr
(
obj_class
,
'RETURN_NAMES'
)
else
info
[
'output'
]
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
(
node
_class
,
'DESCRIPTION'
)
else
''
info
[
'description'
]
=
obj_class
.
DESCRIPTION
if
hasattr
(
obj
_class
,
'DESCRIPTION'
)
else
''
info
[
'category'
]
=
'sd'
if
hasattr
(
obj_class
,
'OUTPUT_NODE'
)
and
obj_class
.
OUTPUT_NODE
==
True
:
info
[
'output_node'
]
=
True
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment