Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion keep/step/step.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _get_foreach_items(self) -> list | list[list]:
foreach_items.append(items)
if not foreach_items:
return []
return len(foreach_items) == 1 and foreach_items[0] or zip(*foreach_items)
return foreach_items[0] if len(foreach_items) == 1 else zip(*foreach_items)

def _run_foreach(self):
"""Evaluate the action for each item, when using the `foreach` attribute (see foreach.md)"""
Expand Down
Loading