From deceb8183344f0ea68a646ac20c81643ecde470e Mon Sep 17 00:00:00 2001 From: BJ Maldonado Date: Tue, 19 Mar 2024 09:26:06 -0400 Subject: [PATCH] [FIX] Generated python local code tester had wrong if statement syntax (#3442) * [FIX] Generated python local code tester had wrong if statement syntax * Changed spacing in return instead of whole object.map call --- frontend/src/lib/components/JobArgs.svelte | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/lib/components/JobArgs.svelte b/frontend/src/lib/components/JobArgs.svelte index b7db4dfb4e..dac1f44eba 100644 --- a/frontend/src/lib/components/JobArgs.svelte +++ b/frontend/src/lib/components/JobArgs.svelte @@ -19,16 +19,16 @@ function pythonCode() { return ` -if __name__ == 'main': +if __name__ == "__main__": ${Object.entries(args) .map(([arg, value]) => { - return ` ${arg} = ${JSON.stringify(value)}` + return ` ${arg} = ${JSON.stringify(value)}` }) .join('\n')} - main(${Object.keys(args) - .map((x) => `${x} = ${x}`) - .join(', ')}) + main(${Object.keys(args) + .map((x) => `${x} = ${x}`) + .join(', ')}) ` }