Add subscriotn
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user