Add subscriotn

This commit is contained in:
CHIEFSOFT\ameye
2025-07-06 20:35:21 -04:00
parent abca50ade4
commit 22fd4eb4a7
2 changed files with 21 additions and 1 deletions
+5 -1
View File
@@ -40,7 +40,11 @@ class MyProductsService(BaseService):
mumberSub = MembersProducts.get_member_product_by_product__member_id(member_id, product_id)
if not mumberSub:
logger.error(f"Ready to add data to tables")
internal_url = str(random.randint(10000, 99999)) + ".devprov.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)
status = 6
MembersProducts.create_subscription(member_id ,product_id,status,internal_url)
response_data = {
"subscription": "No ready",