added string cast

This commit is contained in:
CHIEFSOFT\ameye
2026-01-24 09:03:02 -05:00
parent 887632c707
commit 56a51186f5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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')
+1 -1
View File
@@ -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