[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
This commit is contained in:
BJ Maldonado
2024-03-19 09:26:06 -04:00
committed by GitHub
parent 8b4ec31d6f
commit deceb81833
+5 -5
View File
@@ -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(', ')})
`
}