redis added
This commit is contained in:
@@ -832,7 +832,8 @@ class MyProductsService(BaseService):
|
||||
|
||||
memberSubscription = MembersProducts.get_member_product_by_product_member_id(member_id, product_id)
|
||||
template_images = []
|
||||
template_name=''
|
||||
template_name = ''
|
||||
|
||||
if memberSubscription is not None:
|
||||
custom_template = "" if (
|
||||
memberSubscription.custom_template is None or len(memberSubscription.custom_template)
|
||||
@@ -857,6 +858,7 @@ class MyProductsService(BaseService):
|
||||
blog_product_data = Products.get_product_by_product_id(product_data.blog_product_id)
|
||||
|
||||
settings_items = {}
|
||||
selected_flavor = ''
|
||||
if product_id == "A000001" or product_id == "A000002": ## should be config or data driven not hard coded
|
||||
settings_items = {}
|
||||
|
||||
@@ -876,10 +878,10 @@ class MyProductsService(BaseService):
|
||||
response_data = {
|
||||
"settings_items": settings_items,
|
||||
"member_id": member_id,
|
||||
"subscription_template": subscription_template,
|
||||
"template_name": template_name,
|
||||
"product_subscription_uid": product_subscription_uid,
|
||||
"blog_connect": blogConnect,
|
||||
"subscription_template": str(subscription_template),
|
||||
"template_name": str(template_name),
|
||||
"product_subscription_uid": str(product_subscription_uid),
|
||||
"blog_connect": str(blogConnect),
|
||||
"template_images": template_images
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user