Skip to content

Commit

Permalink
Merge pull request #88 from wavpro/master
Browse files Browse the repository at this point in the history
Fixed python target (linting issues resolved)
  • Loading branch information
jozsefsallai authored Aug 13, 2022
2 parents 96c1d0b + 8feb433 commit 7b7efff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib/generateCode/targets/python.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ function parseBody(body) {
}

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

return body.text
? `payload = '${body.text}'`
: null;
? `payload = '${body.text}'\n\nfiles = null`
: 'files = null';
}

export default function python(url, req) {
Expand Down

0 comments on commit 7b7efff

Please sign in to comment.