backend code

This commit is contained in:
CHIEFSOFT\ameye
2024-12-09 20:22:58 -05:00
parent 27411785c0
commit e425146e72
3 changed files with 13 additions and 2 deletions
+7
View File
@@ -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"""