From 61974f0a6d50efcbe0126a3a752404d2798d5853 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 8 Jan 2025 07:08:59 -0500 Subject: [PATCH] updates --- services/web/project/__init__.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 496bfee..42825e3 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -381,6 +381,12 @@ def complete_register(): password= data.get('password') country= data.get('country') + FIND_USERNAME= "SELECT * FROM members WHERE username::text = '"+username+"'" + with connection: + with connection.cursor(cursor_factory=psycopg2.extras.DictCursor) as cursor: + cursor.execute(FIND_USERNAME) + user_search = cursor.fetchall() + print(user_search) user_uid = data['user']['uid'] #'a4b75649-e3c5-424f-bcdb-5481e625d24b'