my product
This commit is contained in:
@@ -70,11 +70,13 @@ class MyProductsService(BaseService):
|
|||||||
'template_uid': t.uid,
|
'template_uid': t.uid,
|
||||||
'title': t.name,
|
'title': t.name,
|
||||||
'active': 1,
|
'active': 1,
|
||||||
|
'banner': 'https://qa-panel.mermsemr.com/static/media/',
|
||||||
'added': t.added.isoformat() if t.added else None
|
'added': t.added.isoformat() if t.added else None
|
||||||
})
|
})
|
||||||
|
|
||||||
response_data = {
|
response_data = {
|
||||||
"product_id": product_id,
|
"product_id": product_id,
|
||||||
|
"current_template_uid": "f7198ccc-1efc-4c40-8b79-17bc17956195",
|
||||||
"templates": template_data,
|
"templates": template_data,
|
||||||
"last_update": datetime.datetime.utcnow(),
|
"last_update": datetime.datetime.utcnow(),
|
||||||
}
|
}
|
||||||
@@ -436,7 +438,7 @@ class MyProductsService(BaseService):
|
|||||||
productDataStatus = product_data.status
|
productDataStatus = product_data.status
|
||||||
|
|
||||||
memberSubscription = MembersProducts.get_member_product_by_product_member_id(member_id, product_id)
|
memberSubscription = MembersProducts.get_member_product_by_product_member_id(member_id, product_id)
|
||||||
settings_data = []
|
|
||||||
if memberSubscription is not None:
|
if memberSubscription is not None:
|
||||||
# logger.info(f"Incoming MyProduct data ==>>>> {memberSubscription}")
|
# logger.info(f"Incoming MyProduct data ==>>>> {memberSubscription}")
|
||||||
product_subscription_uid = memberSubscription.uid
|
product_subscription_uid = memberSubscription.uid
|
||||||
@@ -469,7 +471,7 @@ class MyProductsService(BaseService):
|
|||||||
|
|
||||||
# Simulate processing
|
# Simulate processing
|
||||||
response_data = {
|
response_data = {
|
||||||
"settings_items": settings_data,
|
"settings_items": settings_items,
|
||||||
"member_id": member_id,
|
"member_id": member_id,
|
||||||
"product_subscription_uid": product_subscription_uid,
|
"product_subscription_uid": product_subscription_uid,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user