Included variable handling in lists for keys
This commit is contained in:
@@ -11,6 +11,17 @@ def buildKey(key, outputs, resolved):
|
||||
if "prefix" in key["keyvalue"]:
|
||||
value = key["keyvalue"]["prefix"] + str(value)
|
||||
|
||||
if isinstance(value, list):
|
||||
keylist = []
|
||||
|
||||
for listitem in value:
|
||||
if isinstance(listitem, dict):
|
||||
listitem = resolved[listitem["resolved"]]
|
||||
keylist.append(listitem)
|
||||
|
||||
value = keylist
|
||||
|
||||
|
||||
return {
|
||||
key["keytitle"]: value,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user