From 25f719cdbe7d5a6c7013d26d1c2f4cfe595fb102 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 8 Jan 2025 07:21:04 -0500 Subject: [PATCH] string adjust --- services/web/project/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 42825e3..5e06a42 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -381,7 +381,7 @@ def complete_register(): password= data.get('password') country= data.get('country') - FIND_USERNAME= "SELECT * FROM members WHERE username::text = '"+username+"'" + FIND_USERNAME= f"SELECT * FROM members WHERE username::text = '{username}' " with connection: with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor: cursor.execute(FIND_USERNAME)