members profile
This commit is contained in:
@@ -61,6 +61,17 @@ class Members(db.Model):
|
||||
return None
|
||||
return member
|
||||
|
||||
@classmethod
|
||||
def set_member_profile_completed(cls, 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_completed = datetime.now(timezone.utc)
|
||||
return member.profile_completed
|
||||
|
||||
|
||||
@classmethod
|
||||
def add_member(cls, firstname, lastname, email, username,password, country):
|
||||
|
||||
Reference in New Issue
Block a user