Update: Remove logins + message Error changed

This commit is contained in:
Yûki VACHOT 2022-01-05 08:59:14 +01:00
parent 0191b6abd1
commit 419e3c1aa9
5 changed files with 42 additions and 13 deletions

View file

@ -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'
)