fix(python): not filled field with default <function_call> now call the default function

This commit is contained in:
Ruben Fiszel
2022-08-06 12:51:14 +02:00
parent 370b26c964
commit 33962c4466

View File

@@ -630,9 +630,9 @@ inner_script = __import__("inner")
with open("args.json") as f:
kwargs = json.load(f, strict=False)
for k, v in kwargs.items():
for k, v in list(kwargs.items()):
if v == '<function call>':
kwargs[k] = None
del kwargs[k]
{transforms}
res = inner_script.main(**kwargs)
res_json = json.dumps(res, separators=(',', ':'), default=str).replace('\n', '')