sanic compliance

This commit is contained in:
Yax 2017-07-09 11:27:16 +02:00
parent 2cbd4e96b8
commit feff70415f
4 changed files with 6 additions and 5 deletions

View file

@ -64,7 +64,7 @@ def get_comments_count(request):
def new_comment(request):
try:
data = request.get_json()
data = request.json
logger.info(data)
# validate token: retrieve site entity

View file

@ -20,6 +20,6 @@ def new_mail(request):
except:
logger.exception("new mail failure")
abort(400)
return response.text('BAD_REQUEST', status=400)
return "OK"
return response.text('OK')