From a4652ec812e9d53de0478af987179a7c48789ae0 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 8 Jan 2025 10:48:50 -0500 Subject: [PATCH] account_id --- services/web/project/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 825326a..480ff4c 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -391,7 +391,8 @@ def complete_register(): user_search = cursor.fetchall() print(user_search) print(user_search[0][0]) - if user_search[0]: + account_id = user_search[0][0] + if account_id > 0 : return jsonify({'status': "DUPLICATE",'message': 'Error - use another username'}), 200 user_uid = pending_data['user']['uid']