flavor added
This commit is contained in:
@@ -381,13 +381,22 @@ class OfficeDashboardService(BaseService):
|
||||
subscription_uid = filters.get('subscription_uid')
|
||||
|
||||
member_sub = []
|
||||
flavor=''
|
||||
product_templates_data = []
|
||||
templates_data = []
|
||||
|
||||
|
||||
|
||||
membersSubResult = MembersProducts.get_member_product_by_subscription_uid(subscription_uid)
|
||||
if membersSubResult:
|
||||
if membersSubResult.product_template:
|
||||
templateData = ProductsTemplates.get_template_by_uid(membersSubResult.product_template)
|
||||
if templateData:
|
||||
flavor = templateData.get('flavor')
|
||||
|
||||
member_sub = {
|
||||
'id': membersSubResult.id,
|
||||
'flavor': flavor,
|
||||
'subscription_uid': str(membersSubResult.uid),
|
||||
'member_id': membersSubResult.member_id,
|
||||
'product_id': membersSubResult.product_id,
|
||||
|
||||
Reference in New Issue
Block a user