application_approved() method added
This commit is contained in:
parent
b0a3830c4f
commit
9fb095b7c6
@ -274,6 +274,14 @@ class HoloUser():
|
||||
else:
|
||||
return tmp_application["state"], tmp_application["complete"]
|
||||
|
||||
def application_approved(self) -> bool:
|
||||
"""Check whether user has a completed application and it got approved
|
||||
|
||||
### Returns:
|
||||
* `bool`: `True` if yes and `False` if no
|
||||
"""
|
||||
return True if col_applications.find_one({"user": self.id}) is not None else False
|
||||
|
||||
def application_restart(self) -> None:
|
||||
"""Reset application of a user in tmp collection and replace it with an empty one
|
||||
"""
|
||||
|
Reference in New Issue
Block a user