mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-22 00:01:34 +00:00
[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:
@@ -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(', ')})
|
||||
`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user