forked from rDrama/rDrama
stop me from getting modaction notifs
parent
ff7a54e842
commit
b6df126012
|
@ -635,7 +635,7 @@ class User(Base):
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def modaction_notifications_count(self):
|
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(
|
return g.db.query(ModAction).filter(
|
||||||
ModAction.created_utc > self.last_viewed_log_notifs,
|
ModAction.created_utc > self.last_viewed_log_notifs,
|
||||||
ModAction.user_id != self.id,
|
ModAction.user_id != self.id,
|
||||||
|
|
Loading…
Reference in New Issue