@classmethod

This commit is contained in:
CHIEFSOFT\ameye
2025-06-23 13:57:54 -04:00
parent 0fd10ca93f
commit 65270114be
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -50,9 +50,10 @@ class Members(db.Model):
raise ValueError(f"Username = {username} not found")
return member
@classmethod
def get_member_by_uid(cls, uid):
"""
Return an offer by its ID.
Return an offer by its UID.
"""
member = cls.query.filter_by(uid=str(uid)).first()