fix url issues
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user