This commit is contained in:
Aevann1 2022-02-05 23:09:17 +02:00
parent 0b7f586721
commit 3ff29602d3
23 changed files with 130 additions and 95 deletions

View file

@ -13,6 +13,7 @@ from .userblock import *
from .badges import *
from .clients import *
from .mod_logs import *
from .mod import *
from files.__main__ import Base, cache
from files.helpers.security import *
import random
@ -149,6 +150,10 @@ class User(Base):
super().__init__(**kwargs)
@lazy
def mods(self, sub):
return g.db.query(Mod.user_id).filter_by(user_id=self.id, sub=sub).one_or_none()
@property
@lazy
def csslazy(self):