forked from bton/matekasse
api fix
This commit is contained in:
parent
8ae5fe8988
commit
e78416efd0
1 changed files with 2 additions and 2 deletions
4
main.py
4
main.py
|
@ -265,7 +265,7 @@ def get_id():
|
||||||
message = tag_id
|
message = tag_id
|
||||||
finished = queue_item
|
finished = queue_item
|
||||||
c.execute(f"SELECT * FROM users WHERE id={user}")
|
c.execute(f"SELECT * FROM users WHERE id={user}")
|
||||||
username = c.fetchall()
|
username = c.fetchall()[0]
|
||||||
conn.commit()
|
conn.commit()
|
||||||
return make_response(json.dumps({"mode":"2","username":username,"code":"1"}))
|
return make_response(json.dumps({"mode":"2","username":username,"code":"1"}))
|
||||||
elif state == "remove":
|
elif state == "remove":
|
||||||
|
@ -276,7 +276,7 @@ def get_id():
|
||||||
message = tag_id
|
message = tag_id
|
||||||
finished = queue_item
|
finished = queue_item
|
||||||
c.execute(f"SELECT * FROM users WHERE id={user}")
|
c.execute(f"SELECT * FROM users WHERE id={user}")
|
||||||
username = c.fetchall()
|
username = c.fetchall()[0]
|
||||||
conn.commit()
|
conn.commit()
|
||||||
return make_response(json({"mode":"2","username":username,"code":"2"}))
|
return make_response(json({"mode":"2","username":username,"code":"2"}))
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue