From 33962c44660fd20173a0ae14b00a66a985dd4fc7 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 6 Aug 2022 12:51:14 +0200 Subject: [PATCH] fix(python): not filled field with default now call the default function --- backend/src/worker.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/src/worker.rs b/backend/src/worker.rs index 4375ae8f1b..db8a6ea4c7 100644 --- a/backend/src/worker.rs +++ b/backend/src/worker.rs @@ -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 == '': - kwargs[k] = None + del kwargs[k] {transforms} res = inner_script.main(**kwargs) res_json = json.dumps(res, separators=(',', ':'), default=str).replace('\n', '')