dfd
This commit is contained in:
@@ -248,6 +248,20 @@ class PipelineExecutor:
|
||||
piped_input: Any,
|
||||
on_log: Optional[Callable[[str], None]],
|
||||
) -> PipelineStageResult:
|
||||
# Bare '@' means use the subject associated with the current result table (e.g., the file shown in a tag/URL view)
|
||||
if token == "@":
|
||||
subject = ctx.get_last_result_subject()
|
||||
if subject is None:
|
||||
stage.status = "failed"
|
||||
stage.error = "Selection requested (@) but there is no current result context"
|
||||
return stage
|
||||
stage.emitted = subject if isinstance(subject, list) else [subject]
|
||||
ctx.set_last_items(stage.emitted)
|
||||
stage.status = "completed"
|
||||
if on_log:
|
||||
on_log("Selected current table subject via @")
|
||||
return stage
|
||||
|
||||
selection = self._parse_selection(token)
|
||||
items = piped_input or []
|
||||
if not isinstance(items, list):
|
||||
|
||||
Reference in New Issue
Block a user