From 9e01485e0a2f0e0507a4f6b009f218106006d1df Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sat, 5 Oct 2024 10:14:54 +0900 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E8=A6=8FPC=E3=81=8C=E7=99=BB=E9=8C=B2?= =?UTF-8?q?=E3=81=A7=E3=81=8D=E3=81=AA=E3=81=84=E3=83=90=E3=82=B0=E3=82=92?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker_auth.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dislocker_auth.py b/dislocker_auth.py index e329fef..6befeae 100644 --- a/dislocker_auth.py +++ b/dislocker_auth.py @@ -305,12 +305,12 @@ class Auth(): pc_number = int(kwargs["pc_number"]) pc_uuid = str(kwargs["pc_uuid"]) cursor.execute("SELECT pc_uuid FROM pc_list WHERE pc_number = %s", (pc_number,)) - pc_record = cursor.fetchall() - pc_record_uuid = pc_record[0][0] + pc_record_uuid_source = cursor.fetchall() + pc_record_uuid = pc_record_uuid_source[0][0] cursor.execute("SELECT pc_number FROM pc_list WHERE pc_number = %s", (pc_number,)) - pc_record = cursor.fetchall() - pc_record_number = pc_record[0][0] - if pc_record_number == None: + pc_record_number_source = cursor.fetchall() + + if pc_record_number_source == None: pc_token = self.token_generate(36) master_password = self.master_password_generate(16) master_password_hash = self.hash_genarate(master_password)