Gated select log printing behind a boolean
This commit is contained in:
@@ -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,6 +30,9 @@ def buildSelect(action, outputs):
|
||||
#outputs[{action.select["source"]}] = select_data
|
||||
outputs[f"{action.alias}_select"] = select_data
|
||||
|
||||
#print(select_data)
|
||||
|
||||
if select_log:
|
||||
if select_data is None:
|
||||
print(f"No data selected during {action.name}")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user