Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct usage of jsonify with HTTP status #906

Merged
merged 3 commits into from
Sep 29, 2022

Conversation

dodumosu
Copy link
Collaborator

this pull request seeks to correct the usage of jsonify() with a HTTP status code. jsonify() returns a Flask Response, so to use it with a return code, rather than return a tuple of <response_content>, <HTTP status code>, one should set the status_code property of the result from jsonify()

this commit replaces every occurence where
the response of a view was a tuple of the output of `jsonify()`
and a response code.
@dodumosu dodumosu requested a review from takinbo September 29, 2022 04:41
@takinbo takinbo merged commit 5776fb1 into nditech:develop Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants