This commit is contained in:
Mateusz779 2023-04-07 13:32:49 +02:00
parent e225eb63e4
commit a2c4fbd409

5
db.py
View File

@ -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()