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): def buildSelect(action, outputs):
#***THIS IS THE CANONICAL BUILD*** #***THIS IS THE CANONICAL BUILD***
select_log = False
select_data = [] select_data = []
if hasattr(action, "select"): if hasattr(action, "select"):
#outputs[f"{action.alias}_select"] = []
try: try:
target = outputs[action.select["source"]] target = outputs[action.select["source"]]
includekey = action.select["include"]["key"] includekey = action.select["include"]["key"]
@@ -27,8 +30,11 @@ def buildSelect(action, outputs):
#outputs[{action.select["source"]}] = select_data #outputs[{action.select["source"]}] = select_data
outputs[f"{action.alias}_select"] = select_data outputs[f"{action.alias}_select"] = select_data
if select_data is None: #print(select_data)
print(f"No data selected during {action.name}")
if select_log:
if select_data is None:
print(f"No data selected during {action.name}")
return action, outputs return action, outputs
except KeyError as error: except KeyError as error: