Skip to content

Commit 7b7efff

Browse files
authored
Merge pull request #88 from wavpro/master
Fixed python target (linting issues resolved)
2 parents 96c1d0b + 8feb433 commit 7b7efff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/generateCode/targets/python.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ function parseBody(body) {
2020
}
2121

2222
if (mime === 'application/json' && body.text) {
23-
return `payload = ${JSON.stringify(JSON.parse(body.text), null, 2)}`;
23+
return `payload = ${JSON.stringify(JSON.parse(body.text), null, 2)}\n\nfiles = null`;
2424
}
2525

2626
return body.text
27-
? `payload = '${body.text}'`
28-
: null;
27+
? `payload = '${body.text}'\n\nfiles = null`
28+
: 'files = null';
2929
}
3030

3131
export default function python(url, req) {

0 commit comments

Comments
 (0)