From 4547e05700ad03b25a978740ae14a39977a1ffe5 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sat, 5 Oct 2024 09:58:13 +0900 Subject: [PATCH] =?UTF-8?q?pc=5Ftoken=E3=82=92=E5=8F=96=E5=BE=97=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dislocker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dislocker.py b/dislocker.py index c2ca9c7..e76d02e 100644 --- a/dislocker.py +++ b/dislocker.py @@ -800,13 +800,13 @@ class DL(): cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s", (pc_number,)) pc_list = cursor.fetchall() - return {"result": 0, "about": "ok", "output_dict": {pc_number: {"pc_number": pc_list[0][0], "using_member_id": pc_list[0][1], "master_password": [0][5], "detail": pc_list[0][6], "alt_name": pc_list[0][7]}}} + return {"result": 0, "about": "ok", "output_dict": {pc_number: {"pc_number": pc_list[0][0], "using_member_id": pc_list[0][1], "pc_token": i[4], "master_password": [0][5], "detail": pc_list[0][6], "alt_name": pc_list[0][7]}}} else: cursor.execute("SELECT * FROM pc_list ORDER BY pc_number") pc_list = cursor.fetchall() pc_list_base = {} for i in pc_list: - pc_list_base[i[0]] = {"pc_number": i[0], "using_member_id": i[1], "master_password": i[5], "detail": i[6], "alt_name": i[7]} + pc_list_base[i[0]] = {"pc_number": i[0], "using_member_id": i[1], "pc_token": i[4], "master_password": i[5], "detail": i[6], "alt_name": i[7]} return {"result": 0, "about": "ok", "output_dict": pc_list_base}