Update app.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Yeuoly 2025-12-02 15:59:42 +08:00 committed by GitHub
parent 62b5c4b763
commit ca215c6a73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -324,8 +324,8 @@ class AppListApi(Resource):
NodeType.TRIGGER_PLUGIN,
}
for workflow in draft_workflows:
for node_type in trigger_node_types:
if next(workflow.walk_nodes(node_type), None):
for _, node_data in workflow.walk_nodes():
if node_data.get("type") in trigger_node_types:
draft_trigger_app_ids.add(str(workflow.app_id))
break