ANDの,を消す
This commit is contained in:
parent
4366aa06ca
commit
b3687e8a2d
1 changed files with 2 additions and 2 deletions
|
@ -58,10 +58,10 @@ class Auth():
|
||||||
|
|
||||||
if "password_hash" in kwargs:
|
if "password_hash" in kwargs:
|
||||||
password_hash = str(kwargs["password_hash"])
|
password_hash = str(kwargs["password_hash"])
|
||||||
cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s AND pc_uuid = %s, AND pc_token = %s", (pc_number, pc_uuid, pc_token))
|
cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s AND pc_uuid = %s AND pc_token = %s", (pc_number, pc_uuid, pc_token))
|
||||||
pc_info = cursor.fetchall()
|
pc_info = cursor.fetchall()
|
||||||
else:
|
else:
|
||||||
cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s AND password_hash = %s AND pc_uuid = %s, AND pc_token = %s", (pc_number, password_hash, pc_uuid, pc_token))
|
cursor.execute("SELECT * FROM pc_list WHERE pc_number = %s AND password_hash = %s AND pc_uuid = %s AND pc_token = %s", (pc_number, password_hash, pc_uuid, pc_token))
|
||||||
pc_info = cursor.fetchall()
|
pc_info = cursor.fetchall()
|
||||||
|
|
||||||
if pc_info:
|
if pc_info:
|
||||||
|
|
Loading…
Reference in a new issue