Skip to content

Commit

Permalink
response message
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorholk committed Oct 3, 2020
1 parent c453706 commit fce0081
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions api/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ def index():
if request.method == 'POST':
if not request.json == None:
if not 'title' in request.json:
return decorate_response(400, "Not a valid title", "")
return decorate_response(400, "Title was not found", "")

if not 'text' in request.json:
return decorate_response(400, 'Not a valid text', "")
return decorate_response(400, 'Text was not found', "")

data = {
'title': request.json['title'],
Expand Down

0 comments on commit fce0081

Please sign in to comment.