diff --git a/app/api/services/office_dashboard.py b/app/api/services/office_dashboard.py index c4f8a7e..fd67395 100644 --- a/app/api/services/office_dashboard.py +++ b/app/api/services/office_dashboard.py @@ -390,7 +390,7 @@ class OfficeDashboardService(BaseService): 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) + templateData = ProductsTemplates.get_template_by_uid(str(membersSubResult.product_template)) if templateData: flavor = templateData.get('flavor') diff --git a/app/models/products_templates.py b/app/models/products_templates.py index a77ce20..fc63564 100644 --- a/app/models/products_templates.py +++ b/app/models/products_templates.py @@ -57,7 +57,7 @@ class ProductsTemplates(db.Model): @classmethod def get_template_by_uid(cls, template_uid): - selTemplate = cls.query.filter_by(uid=template_uid).first() + selTemplate = cls.query.filter_by(uid=str(template_uid)).first() if not selTemplate: return None return selTemplate