Skip to content

Commit

Permalink
Fix formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
comfyanonymous committed Dec 28, 2024
1 parent 96697c4 commit e1dec3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/custom_node_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ async def get_workflow_templates(request):
workflow_name = os.path.splitext(os.path.basename(file))[0]
workflow_templates_dict.setdefault(custom_nodes_name, []).append(workflow_name)
return web.json_response(workflow_templates_dict)

# Serve workflow templates from custom nodes.
for module_name, module_dir in loadedModules:
workflows_dir = os.path.join(module_dir, 'example_workflows')
if os.path.exists(workflows_dir):
webapp.add_routes([web.static('/api/workflow_templates/' + module_name, workflows_dir)])
webapp.add_routes([web.static('/api/workflow_templates/' + module_name, workflows_dir)])

0 comments on commit e1dec3c

Please sign in to comment.