web files
This commit is contained in:
@@ -95,6 +95,17 @@ class Members(db.Model):
|
||||
member.profile_completed = datetime.now(timezone.utc)
|
||||
return member.profile_completed
|
||||
|
||||
@classmethod
|
||||
def set_member_profile_picture(cls, uid, picture_uid):
|
||||
member = cls.query.filter_by(uid=str(uid)).first()
|
||||
|
||||
if not member:
|
||||
logger.info(f"User UID = {uid} found")
|
||||
raise ValueError(f"Member with UID {uid} does not exist.")
|
||||
|
||||
member.profile_picture = picture_uid.str()
|
||||
return member.profile_picture
|
||||
|
||||
@classmethod
|
||||
def set_member_update_profile(cls, uid, profile_data):
|
||||
member = cls.query.filter_by(uid=str(uid)).first()
|
||||
|
||||
Reference in New Issue
Block a user