This commit is contained in:
CHIEFSOFT\ameye
2025-12-02 11:49:05 -05:00
parent c94982fd2c
commit 4a53f57bbc
2 changed files with 38 additions and 42 deletions
+8 -11
View File
@@ -224,7 +224,7 @@ class AccountService(BaseService):
introduction = str(validated_data.get('introduction'))
url_name = str(validated_data.get('url_name'))
#verify is anybody is using this url name
# verify is anybody is using this url name
urlNammeData = MembersProfile.get_any_member_profile_by_url_name(url_name)
if urlNammeData:
return {
@@ -255,7 +255,7 @@ class AccountService(BaseService):
profile_completed = member.profile_completed
else:
profile_result = MembersProfile.create_member_profile(member.id, practice, specialization,
introduction,url_name)
introduction, url_name)
if profile_result:
profile_uid = profile_result.uid
@@ -303,11 +303,10 @@ class AccountService(BaseService):
"uid": uid,
}, 400
member_id = member.id
dList = []
#LET get the ptovison actions
# LET get the ptovison actions
prov_actions = ProvisionActions.get_provision_action_calendar_member_id(member_id=member_id, limit=100)
if prov_actions:
for prov_action in prov_actions:
@@ -316,7 +315,8 @@ class AccountService(BaseService):
"category": 3}
dList.append(new_l)
member_actions = MembersActions.get_recent_member_calendar_actions_member_id(member_id=member_id, limit=100)
member_actions = MembersActions.get_recent_member_calendar_actions_member_id(member_id=member_id,
limit=100)
if member_actions:
for member_action in member_actions:
new_l = {"uid": member_action.uid,
@@ -444,6 +444,7 @@ class AccountService(BaseService):
"email": member_data.email,
"phone": member_data.phone,
"full_address": member_data.full_address,
"picture": 'https://media.mermsemr.com/media/show/merms-profile',
"country": member_data.country,
}
@@ -504,11 +505,9 @@ class AccountService(BaseService):
"full_address": full_address,
# "email": email,
}
Members.set_member_update_profile(uid,profile_data)
Members.set_member_update_profile(uid, profile_data)
#Read the saved data
# Read the saved data
member_data = Members.get_member_by_uid(uid)
personal_data = {
"firstname": member_data.firstname,
@@ -552,7 +551,6 @@ class AccountService(BaseService):
db.session.rollback()
return ResponseHelper.internal_server_error()
@staticmethod
def process_test_email(data):
logger.info(f"Email Test Enter", exc_info=True)
@@ -643,7 +641,6 @@ class AccountService(BaseService):
finally:
server.quit() # Close the connection
# @staticmethod
# def get_profile_data(data):
#