From 6253c0e9a9cb2e60ccf91ed018bd8c1fb8851d5f Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Fri, 10 Jan 2025 11:03:54 -0500 Subject: [PATCH] fix range --- 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 b0487a3..609fe24 100644 --- a/services/web/project/__init__.py +++ b/services/web/project/__init__.py @@ -759,7 +759,7 @@ def subscription_start(current_user): return jsonify({'status': "INVALID",'message': 'Error - Invalid product'}), 403 member_id = current_user['user']['member_id'] - internal_url = str(random.randint(10000, 9999)) + product_id + ".mermsemr.com" + internal_url = str(random.randint(10000, 99999)) + product_id + ".mermsemr.com" INSERT_NEW_PRODUCT ="INSERT INTO members_products (member_id ,product_id,status,internal_url) VALUES (%s, %s, %s, %s)" val_insert = (member_id, product_id,6,internal_url) with connection: