This commit is contained in:
newturok 2023-10-02 15:15:13 -07:00 committed by GitHub
commit 997d9af7c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,10 +411,8 @@ class PromptServer():
@routes.get("/object_info") @routes.get("/object_info")
async def get_object_info(request): async def get_object_info(request):
out = {} node_info_dict = {node_name: node_info(node_name) for node_name in nodes.NODE_CLASS_MAPPINGS}
for x in nodes.NODE_CLASS_MAPPINGS: return web.json_response(node_info_dict)
out[x] = node_info(x)
return web.json_response(out)
@routes.get("/object_info/{node_class}") @routes.get("/object_info/{node_class}")
async def get_object_info_node(request): async def get_object_info_node(request):