dont show me modaction notifs

master
Aevann1 2022-08-15 16:26:48 +02:00
parent 3ac493aa95
commit 05133f611b
1 changed files with 2 additions and 2 deletions

View File

@ -440,7 +440,7 @@ class User(Base):
@property
@lazy
def modaction_num(self):
if self.admin_level < 2 or self.id == AEVANN_ID: return 0
if self.admin_level < 2: return 0
return g.db.query(ModAction).filter_by(user_id=self.id).count()
@property
@ -493,7 +493,7 @@ class User(Base):
@property
@lazy
def modaction_notifications_count(self):
if not self.admin_level: return 0
if not self.admin_level or self.id == AEVANN_ID: return 0
return g.db.query(ModAction).filter(
ModAction.created_utc > self.last_viewed_log_notifs,
ModAction.user_id != self.id,