forked from MarseyWorld/MarseyWorld
dont show me modaction notifs
parent
3ac493aa95
commit
05133f611b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue