From dfb21e3a257780c4b1e94f921ef0d7ab11617aec Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Sun, 29 Sep 2024 00:24:15 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=AD=E3=83=BC=E3=83=9C=E3=83=BC=E3=83=89?= =?UTF-8?q?=E3=80=81=E3=83=9E=E3=82=A6=E3=82=B9=E3=81=AE=E3=83=9C=E3=82=BF?= =?UTF-8?q?=E3=83=B3=E3=81=8C=E5=91=BC=E3=81=B3=E5=87=BA=E3=81=9B=E3=81=AA?= =?UTF-8?q?=E3=81=84=E3=83=90=E3=82=B0=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_slash.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dislocker_slash.py b/dislocker_slash.py index 13680cf..c0e53fa 100644 --- a/dislocker_slash.py +++ b/dislocker_slash.py @@ -833,7 +833,7 @@ class DL(): keyboard_list = cursor.fetchall() keyboard_list_base = {} for i in keyboard_list: - if i['keyboard_number'] == 0: + if i[0] == 0: pass else: keyboard_list_base[i[0]] = {"keyboard_number": i[0], "using_member_id": i[1], "device_instance_path": i[2], "device_name": i[3], "detail": i[4], "alt_name": i[5]} @@ -841,7 +841,7 @@ class DL(): return {"result": 0, "about": "ok", "output_dict": keyboard_list_base} except Exception as error: - self.log(title=f"[ERROR] PCリストの取得中にエラーが発生しました。 {str(error.__class__.__name__)}", message=str(error.args), flag=1) + self.log(title=f"[ERROR] キーボードリストの取得中にエラーが発生しました。 {str(error.__class__.__name__)}", message=str(error.args), flag=1) return {"result": 1, "about": "error", "output_dict": {"error_class_name": str(error.__class__.__name__), "error_args": str(error.args)}} finally: @@ -863,7 +863,7 @@ class DL(): mouse_list = cursor.fetchall() mouse_list_base = {} for i in mouse_list: - if i['mouse_number'] == 0: + if i[0] == 0: pass else: mouse_list_base[i[0]] = {"keyboard_number": i[0], "using_member_id": i[1], "device_instance_path": i[2], "device_name": i[3], "detail": i[4], "alt_name": i[5]} @@ -871,7 +871,7 @@ class DL(): return {"result": 0, "about": "ok", "output_dict": mouse_list_base} except Exception as error: - self.log(title=f"[ERROR] PCリストの取得中にエラーが発生しました。 {str(error.__class__.__name__)}", message=str(error.args), flag=1) + self.log(title=f"[ERROR] マウスリストの取得中にエラーが発生しました。 {str(error.__class__.__name__)}", message=str(error.args), flag=1) return {"result": 1, "about": "error", "output_dict": {"error_class_name": str(error.__class__.__name__), "error_args": str(error.args)}} finally: