From 11ec9e1366fd996b5ad8a6e7cc3e5fa3a75bc512 Mon Sep 17 00:00:00 2001 From: duzzsys Date: Thu, 21 May 2020 23:39:59 -0300 Subject: [PATCH] =?UTF-8?q?Erros=20do=20backend=20quanto=20ao=20padr=C3=A3?= =?UTF-8?q?o=20de=20retorno=20com=20primeira=20letra=20maiscula?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/model.py b/model.py index bab9418..f36b686 100644 --- a/model.py +++ b/model.py @@ -77,17 +77,17 @@ def confirm_token(self, data): if v_token == token and user_token == user_id: self.r = { - 'message' : 'OK', - 'status' : 200 + 'Message' : 'OK', + 'Status' : 200 } else: raise Exception('Invalid credencials') except Exception as e: self.r = { - 'message' : { + 'Message' : { 'error' : str(e) }, - 'status' : 401 + 'Status' : 401 } return self.r