From 3c35ac4075172c99bfaff70d9593459703723388 Mon Sep 17 00:00:00 2001 From: Thastertyn Date: Mon, 11 Mar 2024 08:20:54 +0100 Subject: [PATCH] Fix using nonexistent variable --- app/services/user_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/user_service.py b/app/services/user_service.py index c27ad7e..4e2cb29 100644 --- a/app/services/user_service.py +++ b/app/services/user_service.py @@ -85,7 +85,7 @@ class UserService: with db_connection.cursor(dictionary=True) as cursor: cursor.execute("select id, password from user where username = %s", (username,)) - result = db_cursor.fetchone() + result = cursor.fetchone() user_id = result['id'] password_hash = result['password']