From c6c602a34bd75fa99efe7f595ca69938546ac8c9 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Mon, 26 Aug 2024 00:16:53 +0900 Subject: [PATCH] =?UTF-8?q?if=E6=96=87=E3=81=AE=E3=81=82=E3=81=9F=E3=82=8A?= =?UTF-8?q?=E3=81=AE=E3=83=9F=E3=82=B9=E3=82=92=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dislocker_auth.py b/dislocker_auth.py index a722cff..297f65f 100644 --- a/dislocker_auth.py +++ b/dislocker_auth.py @@ -179,13 +179,13 @@ class Auth(): pc_record = cursor.fetchall() pc_record_uuid = pc_record[0][0] if pc_record_uuid == None: - return {"result": 1, "about": "exist"} - else: pc_token = self.token_generate(36) cursor.execute("UPDATE pc_list SET pc_uuid = %s, pc_token = %s WHERE pc_number = %s", (pc_uuid, pc_token, pc_number)) self.db.commit() os.remove(onetime_config_path) return {"result": 0, "about": "ok", "output_dict": {"pc_token": pc_token}} + else: + return {"result": 1, "about": "exist"} except Exception as error: print("停止処理中にエラーが発生しました。\nエラー内容")