From 289b7f95f13fec05c5793317cf4f6d8c981b2dbb Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 8 Jan 2025 11:24:55 -0500 Subject: [PATCH] count = len --- services/web/project/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/web/project/__init__.py b/services/web/project/__init__.py index 480ff4c..5aad2f8 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -390,8 +390,8 @@ def complete_register(): cursor.execute(FIND_USERNAME) user_search = cursor.fetchall() print(user_search) - print(user_search[0][0]) - account_id = user_search[0][0] + #print(user_search[0][0]) + account_id = count = len( user_search ) if account_id > 0 : return jsonify({'status': "DUPLICATE",'message': 'Error - use another username'}), 200