From 544a94e637def6a55310517b6ff7ce96814fe157 Mon Sep 17 00:00:00 2001 From: Apex Liu Date: Wed, 9 May 2018 21:40:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=EF=BC=9A=E8=BF=90=E7=BB=B4?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E7=AD=96=E7=95=A5=E4=B8=AD=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E5=8A=A0=E5=85=A5=E8=BF=9C=E7=A8=8B=E8=B4=A6=E5=8F=B7=E5=92=8C?= =?UTF-8?q?=E8=AF=A5=E8=B4=A6=E5=8F=B7=E6=89=80=E5=9C=A8=E7=9A=84=E4=B8=BB?= =?UTF-8?q?=E6=9C=BA=E3=80=81=E6=88=96=E6=89=80=E5=9C=A8=E7=9A=84=E7=BB=84?= =?UTF-8?q?=EF=BC=8C=E4=BD=BF=E5=BE=97=E8=BF=9C=E7=A8=8B=E8=B4=A6=E5=8F=B7?= =?UTF-8?q?=E6=8E=88=E6=9D=83=E5=9C=A8=E5=90=8C=E4=B8=80=E4=B8=AA=E7=AD=96?= =?UTF-8?q?=E7=95=A5=E4=B8=AD=E9=87=8D=E5=A4=8D=EF=BC=8C=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E8=BF=9C=E7=A8=8B=EF=BC=88=E5=90=8E=E7=BB=AD?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=97=B6=E6=9C=89=E9=87=8D=E5=A4=8D=E5=B0=B1?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BA=86=EF=BC=89=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/www/teleport/webroot/app/model/ops.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/server/www/teleport/webroot/app/model/ops.py b/server/www/teleport/webroot/app/model/ops.py index d10ae30..de53c31 100644 --- a/server/www/teleport/webroot/app/model/ops.py +++ b/server/www/teleport/webroot/app/model/ops.py @@ -18,8 +18,8 @@ def get_by_id(pid): if err != TPE_OK: return err, {} - if len(s.recorder) == 0: - return TPE_NOT_EXISTS, {} + # if len(s.recorder) == 0: + # return TPE_NOT_EXISTS, {} return TPE_OK, s.recorder[0] @@ -475,8 +475,8 @@ def get_auth(auth_id): if len(s.recorder) == 0: return None, TPE_NOT_EXISTS - if len(s.recorder) != 1: - return None, TPE_FAILED + # if len(s.recorder) != 1: + # return None, TPE_FAILED # log.v(s.recorder[0]) return s.recorder[0], TPE_OK