From 55b55046df8339a9e4726a0707a61ba4a17bedd5 Mon Sep 17 00:00:00 2001 From: suti7yk5032 Date: Fri, 23 Aug 2024 00:22:01 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B9=E3=83=9A=E3=83=BC=E3=82=B9=E3=81=8C?= =?UTF-8?q?=E3=81=AA=E3=81=8B=E3=81=A3=E3=81=9F=E3=81=AE=E3=81=8C=E6=B0=97?= =?UTF-8?q?=E3=81=AB=E3=81=AA=E3=81=A3=E3=81=9F=E3=81=A0=E3=81=91?= 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 1273cc0..1e9dd7e 100644 --- a/dislocker.py +++ b/dislocker.py @@ -186,7 +186,7 @@ class Bot(discord.Client): if discord_user_id == None: # pc_listから探す - cursor.execute("SELECT * FROM pc_list WHERE pc_number=%s", (pc_number,)) + cursor.execute("SELECT * FROM pc_list WHERE pc_number= %s", (pc_number,)) pc_list_record = cursor.fetchall() if pc_list_record[0][1] == None: return {"result": 0, "about": "vacent"} @@ -194,7 +194,7 @@ class Bot(discord.Client): return {"result": 1, "about": "used_by_other"} else: #ユーザーIDを指定してPC使用履歴から探す - cursor.execute("SELECT * FROM pc_usage_history WHERE member_id=%s ORDER BY id DESC LIMIT 1", (discord_user_id,)) + cursor.execute("SELECT * FROM pc_usage_history WHERE member_id= %s ORDER BY id DESC LIMIT 1", (discord_user_id,)) pc_usage_history_record = cursor.fetchall() if pc_usage_history_record: print("used")