backend code
This commit is contained in:
@@ -23,6 +23,13 @@ class Members:
|
||||
return
|
||||
|
||||
|
||||
def get_member_by_uid(self, user_uid):
|
||||
"""Get a user by uid"""
|
||||
user = db.members.find_one({"uid": user_uid, "active": True})
|
||||
if not user:
|
||||
return
|
||||
return user
|
||||
|
||||
|
||||
# def get_by_id(self, user_id):
|
||||
# """Get a user by id"""
|
||||
|
||||
Reference in New Issue
Block a user