-
This commit is contained in:
parent
e225eb63e4
commit
a2c4fbd409
5
db.py
5
db.py
@ -43,8 +43,9 @@ def AddVPNImage(name, token):
|
|||||||
def GetVPNImage(token):
|
def GetVPNImage(token):
|
||||||
Connect()
|
Connect()
|
||||||
with GetCur() as cur:
|
with GetCur() as cur:
|
||||||
return cur.execute("""
|
cur.execute("""
|
||||||
SELECT image_name FROM vpn WHERE token = %s
|
SELECT image_name FROM vpn WHERE token = %s
|
||||||
""",(token,)).fetchone()
|
""",(token,))
|
||||||
|
return cur.fetchone()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user