test URL duplicates

This commit is contained in:
CHIEFSOFT\ameye
2025-09-22 11:52:37 -04:00
parent b7128db867
commit a0c99bfca5
2 changed files with 23 additions and 3 deletions
+7
View File
@@ -70,6 +70,13 @@ class MembersProducts(db.Model):
return None
return member_product
@classmethod
def get_member_product_by_internal_url(cls, internal_url):
member_product = cls.query.filter_by(internal_url=str(internal_url)).all()
if not member_product:
return None
return member_product
@classmethod
def set_member_product_template(cls, member_id, product_id, product_template):
member_product = cls.query.filter_by(member_id=str(member_id), product_id=str(product_id)).first()