mirror of
https://github.com/langgenius/dify.git
synced 2026-05-03 08:58:09 +08:00
chore: remove block code
This commit is contained in:
@ -65,7 +65,6 @@ class NodeType(StrEnum):
|
||||
HUMAN_INPUT = "human-input"
|
||||
COMMAND = "command"
|
||||
FILE_UPLOAD = "file-upload"
|
||||
GROUP = "group"
|
||||
|
||||
@property
|
||||
def is_trigger_node(self) -> bool:
|
||||
|
||||
@ -309,11 +309,10 @@ class Graph:
|
||||
|
||||
# Filter out UI-only node types:
|
||||
# - custom-note: top-level type (node_config.type == "custom-note")
|
||||
# - group: data-level type (node_config.data.type == "group")
|
||||
node_configs = [
|
||||
node_config
|
||||
for node_config in node_configs
|
||||
if node_config.get("type", "") != "custom-note" and node_config.get("data", {}).get("type", "") != "group"
|
||||
if node_config.get("type", "") != "custom-note"
|
||||
]
|
||||
|
||||
# Parse node configurations
|
||||
|
||||
Reference in New Issue
Block a user