Update: Remove logins + message Error changed
This commit is contained in:
parent
0191b6abd1
commit
419e3c1aa9
5 changed files with 42 additions and 13 deletions
|
|
@ -8,7 +8,7 @@ def send_error(status_code, message):
|
|||
'message': message
|
||||
}
|
||||
res = app.response_class(
|
||||
response=json.dumps(data_json, sort_keys=True),
|
||||
response=json.dumps(data_json),
|
||||
status=status_code,
|
||||
mimetype='application/json'
|
||||
)
|
||||
|
|
@ -23,7 +23,7 @@ def send_message(message, data):
|
|||
'data': data
|
||||
}
|
||||
res = app.response_class(
|
||||
response=json.dumps(data_json, sort_keys=True),
|
||||
response=json.dumps(data_json),
|
||||
status=200,
|
||||
mimetype='application/json'
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue