This commit is contained in:
CHIEFSOFT\ameye
2025-07-06 20:16:34 -04:00
parent 6c2cc4273b
commit 5ef94d04b2
4 changed files with 65 additions and 7 deletions
+7
View File
@@ -40,6 +40,13 @@ class MembersProducts(db.Model):
return None
return member_products
@classmethod
def get_member_product_by_product__member_id(cls, member_id, product_id):
member_product = cls.query.filter_by(member_id=str(member_id), product_id=str(product_id))
if not member_product:
return None
return member_product
def to_dict(self):
"""