デバイスが自前(0番)の時に他人が使っている判定になるのを修正
This commit is contained in:
parent
6bf928ac13
commit
cb3bc05faf
1 changed files with 2 additions and 2 deletions
|
@ -390,12 +390,12 @@ class DL():
|
|||
# PCリストの該当のレコードを更新
|
||||
cursor.execute("UPDATE pc_list SET using_member_id = %s, password_hash = %s WHERE pc_number = %s", (member_id, password_hash, user_info["pc_number"]))
|
||||
# キーボードリストの該当のレコードを自前(None)だったらスキップ、借りていたら更新
|
||||
if user_info["keyboard_number"] == None:
|
||||
if user_info["keyboard_number"] == 0:
|
||||
pass
|
||||
else:
|
||||
cursor.execute("UPDATE keyboard_list SET using_member_id = %s WHERE keyboard_number = %s", (member_id, user_info["keyboard_number"]))
|
||||
# マウスも同様に
|
||||
if user_info["mouse_number"] == None:
|
||||
if user_info["mouse_number"] == 0:
|
||||
pass
|
||||
else:
|
||||
cursor.execute("UPDATE mouse_list SET using_member_id = %s WHERE mouse_number = %s", (member_id, user_info["mouse_number"]))
|
||||
|
|
Loading…
Reference in a new issue