Added image grabbing and data capacity to request and included runtime recognition
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
def buildImage(response, action, outputs):
|
||||
if hasattr(action, "image"):
|
||||
if response is not None:
|
||||
#try:
|
||||
imagebytes = response.content
|
||||
outputs[action.image] = imagebytes
|
||||
#except AttributeError:
|
||||
|
||||
else:
|
||||
print("No response received"),
|
||||
|
||||
return outputs
|
||||
@@ -1,4 +1,5 @@
|
||||
from core.runtime import buildSelect, buildOutput, buildSave, loadSave, buildLog
|
||||
from core.runtime.image import buildImage
|
||||
#from core.runtime.select import buildSelect3
|
||||
from core.runtime.resolver import resolveItem
|
||||
|
||||
@@ -6,11 +7,14 @@ def buildPreRuntimeAttr(action, outputs):
|
||||
outputs = loadSave(action, outputs)
|
||||
|
||||
resolved = resolveItem(action, outputs)
|
||||
|
||||
#print("RESOLVER DEBUG")
|
||||
#print(resolved)
|
||||
return outputs, resolved
|
||||
|
||||
def buildRuntimeAttr(action, outputs, response):
|
||||
outputs = buildOutput(response, action, outputs)
|
||||
|
||||
outputs = buildImage(response, action, outputs)
|
||||
|
||||
select_data, action, outputs = buildSelect(action, outputs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user