Gated select log printing behind a boolean

This commit is contained in:
Lyncoln
2026-10-28 01:15:33 -04:00
parent 3dfc70db45
commit fbacfa72c8
+8 -2
View File
@@ -1,8 +1,11 @@
def buildSelect(action, outputs):
#***THIS IS THE CANONICAL BUILD***
select_log = False
select_data = []
if hasattr(action, "select"):
#outputs[f"{action.alias}_select"] = []
try:
target = outputs[action.select["source"]]
includekey = action.select["include"]["key"]
@@ -27,8 +30,11 @@ def buildSelect(action, outputs):
#outputs[{action.select["source"]}] = select_data
outputs[f"{action.alias}_select"] = select_data
if select_data is None:
print(f"No data selected during {action.name}")
#print(select_data)
if select_log:
if select_data is None:
print(f"No data selected during {action.name}")
return action, outputs
except KeyError as error: