pc_tokenを取得できるように
This commit is contained in:
parent
bc35550693
commit
4547e05700
1 changed files with 2 additions and 2 deletions
|
@ -800,13 +800,13 @@ class DL():
|
||||||
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 = cursor.fetchall()
|
pc_list = cursor.fetchall()
|
||||||
|
|
||||||
return {"result": 0, "about": "ok", "output_dict": {pc_number: {"pc_number": pc_list[0][0], "using_member_id": pc_list[0][1], "master_password": [0][5], "detail": pc_list[0][6], "alt_name": pc_list[0][7]}}}
|
return {"result": 0, "about": "ok", "output_dict": {pc_number: {"pc_number": pc_list[0][0], "using_member_id": pc_list[0][1], "pc_token": i[4], "master_password": [0][5], "detail": pc_list[0][6], "alt_name": pc_list[0][7]}}}
|
||||||
else:
|
else:
|
||||||
cursor.execute("SELECT * FROM pc_list ORDER BY pc_number")
|
cursor.execute("SELECT * FROM pc_list ORDER BY pc_number")
|
||||||
pc_list = cursor.fetchall()
|
pc_list = cursor.fetchall()
|
||||||
pc_list_base = {}
|
pc_list_base = {}
|
||||||
for i in pc_list:
|
for i in pc_list:
|
||||||
pc_list_base[i[0]] = {"pc_number": i[0], "using_member_id": i[1], "master_password": i[5], "detail": i[6], "alt_name": i[7]}
|
pc_list_base[i[0]] = {"pc_number": i[0], "using_member_id": i[1], "pc_token": i[4], "master_password": i[5], "detail": i[6], "alt_name": i[7]}
|
||||||
|
|
||||||
return {"result": 0, "about": "ok", "output_dict": pc_list_base}
|
return {"result": 0, "about": "ok", "output_dict": pc_list_base}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue