From a2c4fbd409a5ea35cf2ad0502ef971d7ff526060 Mon Sep 17 00:00:00 2001 From: Mateusz779 Date: Fri, 7 Apr 2023 13:32:49 +0200 Subject: [PATCH] - --- db.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/db.py b/db.py index e260539..ace7417 100644 --- a/db.py +++ b/db.py @@ -43,8 +43,9 @@ def AddVPNImage(name, token): def GetVPNImage(token): Connect() with GetCur() as cur: - return cur.execute(""" + cur.execute(""" SELECT image_name FROM vpn WHERE token = %s - """,(token,)).fetchone() + """,(token,)) + return cur.fetchone() \ No newline at end of file