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")