fix url issues

This commit is contained in:
CHIEFSOFT\ameye
2025-09-22 13:09:33 -04:00
parent 1c6a29d36b
commit 500b4c5931
2 changed files with 13 additions and 11 deletions
+5 -5
View File
@@ -45,11 +45,11 @@ class MembersProfile(db.Model):
return member_profile
@classmethod
def get_member_product_by_url_name(cls, url_name):
member_product = cls.query.filter_by(url_name=str(url_name)).first()
if not member_product:
def get_any_member_profile_by_url_name(cls, url_name):
member_profile = cls.query.filter_by(url_name=str(url_name)).first()
if not member_profile:
return None
return member_product
return member_profile
@classmethod
@@ -70,7 +70,7 @@ class MembersProfile(db.Model):
(0 rows)
'''
logger.info(f" Data for Profile Data {member_id} ,{practice} ,{specialization}, {introduction} ")
logger.info(f" Data for Profile Data {member_id} ,{practice} ,{specialization}, {introduction} {url_name} ")
profile_data = cls(
uid=str(uuid.uuid4()),
member_id=member_id,