web files

This commit is contained in:
CHIEFSOFT\ameye
2026-02-14 08:39:13 -05:00
parent 3218de1f1b
commit 7c97667340
3 changed files with 18 additions and 6 deletions
+11
View File
@@ -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()