chore(api/core): apply ruff reformatting (#7624)
This commit is contained in:
parent
178730266d
commit
2cf1187b32
724 changed files with 21180 additions and 21123 deletions
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
from core.workflow.entities.base_node_data_entities import BaseIterationNodeData, BaseIterationState
|
||||
|
||||
|
||||
|
|
@ -7,7 +6,8 @@ class LoopNodeData(BaseIterationNodeData):
|
|||
Loop Node Data.
|
||||
"""
|
||||
|
||||
|
||||
class LoopState(BaseIterationState):
|
||||
"""
|
||||
Loop State.
|
||||
"""
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ class LoopNode(BaseNode):
|
|||
"""
|
||||
Loop Node.
|
||||
"""
|
||||
|
||||
_node_data_cls = LoopNodeData
|
||||
_node_type = NodeType.LOOP
|
||||
|
||||
|
|
@ -21,14 +22,16 @@ class LoopNode(BaseNode):
|
|||
"""
|
||||
Get conditions.
|
||||
"""
|
||||
node_id = node_config.get('id')
|
||||
node_id = node_config.get("id")
|
||||
if not node_id:
|
||||
return []
|
||||
|
||||
# TODO waiting for implementation
|
||||
return [Condition(
|
||||
variable_selector=[node_id, 'index'],
|
||||
comparison_operator="≤",
|
||||
value_type="value_selector",
|
||||
value_selector=[]
|
||||
)]
|
||||
return [
|
||||
Condition(
|
||||
variable_selector=[node_id, "index"],
|
||||
comparison_operator="≤",
|
||||
value_type="value_selector",
|
||||
value_selector=[],
|
||||
)
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue