fix cartesian product

master
Aevann 2023-01-26 07:47:20 +02:00
parent 6b5f87a638
commit d6dda995af
1 changed files with 1 additions and 1 deletions

View File

@ -201,7 +201,7 @@ def notifications_modactions(v:User):
listing = listing.filter(cls.kind.in_(('ban_user','unban_user','shadowban','unshadowban')))
if v.admin_level < PERMS['PROGSTACK']:
listing = listing.filter(ModAction.kind.notin_(MODACTION_PRIVILEGED__TYPES))
listing = listing.filter(cls.kind.notin_(MODACTION_PRIVILEGED__TYPES))
if cls == SubAction:
listing = listing.filter(cls.sub.in_(v.moderated_subs))