Skip to content

Commit

Permalink
Black formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
FernanOrtega authored and Fernando Ortega Gallego committed Mar 12, 2020
1 parent 9cdaad5 commit d45ff7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentimentanalysis/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from sentimentanalysis.analizer import SentimentAnalysis


def get_response(body: Union[str, dict], status: int = 200, message_as_json: bool=False):
def get_response(body: Union[str, dict], status: int = 200):
json_body = {("result" if status == 200 else "error"): body}

return Response(json.dumps(json_body), status, mimetype="application/json")
Expand Down

0 comments on commit d45ff7f

Please sign in to comment.