add stats to user page
This commit is contained in:
@ -4,6 +4,9 @@ from .constants import PermissionLevel
|
||||
class Users(Model):
|
||||
table = "users"
|
||||
|
||||
def get_avatar_url(self):
|
||||
return Avatars.find({"id": self.avatar_id}).file_path
|
||||
|
||||
def is_guest(self):
|
||||
return self.permission == PermissionLevel.GUEST.value
|
||||
|
||||
|
Reference in New Issue
Block a user