スペースがなかったのが気になっただけ
This commit is contained in:
parent
db55479da9
commit
55b55046df
1 changed files with 2 additions and 2 deletions
|
@ -186,7 +186,7 @@ class Bot(discord.Client):
|
||||||
|
|
||||||
if discord_user_id == None:
|
if discord_user_id == None:
|
||||||
# pc_listから探す
|
# 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()
|
pc_list_record = cursor.fetchall()
|
||||||
if pc_list_record[0][1] == None:
|
if pc_list_record[0][1] == None:
|
||||||
return {"result": 0, "about": "vacent"}
|
return {"result": 0, "about": "vacent"}
|
||||||
|
@ -194,7 +194,7 @@ class Bot(discord.Client):
|
||||||
return {"result": 1, "about": "used_by_other"}
|
return {"result": 1, "about": "used_by_other"}
|
||||||
else:
|
else:
|
||||||
#ユーザーIDを指定してPC使用履歴から探す
|
#ユーザー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()
|
pc_usage_history_record = cursor.fetchall()
|
||||||
if pc_usage_history_record:
|
if pc_usage_history_record:
|
||||||
print("used")
|
print("used")
|
||||||
|
|
Loading…
Reference in a new issue