add stats to user page

This commit is contained in:
2025-07-01 20:29:15 +03:00
parent 2345830074
commit df239fb130
2 changed files with 50 additions and 8 deletions

View File

@ -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