スペースがなかったのが気になっただけ

This commit is contained in:
suti7yk5032 2024-08-23 00:22:01 +09:00
parent db55479da9
commit 55b55046df

View file

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