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