redis added

This commit is contained in:
CHIEFSOFT\ameye
2026-01-19 09:00:48 -05:00
parent fb24b84a46
commit 718651128f
4 changed files with 68 additions and 18 deletions
+7 -5
View File
@@ -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
}