upload not found
This commit is contained in:
@@ -101,11 +101,11 @@ class Members(db.Model):
|
|||||||
member = cls.query.filter_by(uid=str(uid)).first()
|
member = cls.query.filter_by(uid=str(uid)).first()
|
||||||
|
|
||||||
if not member:
|
if not member:
|
||||||
logger.info(f"User UID = {uid} found")
|
logger.info(f"Set_Member_Profile_Picture UID = {uid} Not Found**")
|
||||||
raise ValueError(f"Member with UID {uid} does not exist.")
|
raise ValueError(f"Member with UID {uid} does not exist.")
|
||||||
|
|
||||||
member.profile_picture = picture_uid
|
member.profile_picture = picture_uid
|
||||||
return member.profile_picture
|
return member
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def set_member_update_profile(cls, uid, profile_data):
|
def set_member_update_profile(cls, uid, profile_data):
|
||||||
|
|||||||
Reference in New Issue
Block a user