Skip to content

Commit

Permalink
user notifier should only return enabled senders
Browse files Browse the repository at this point in the history
Continuation of line#258
  • Loading branch information
kfdm committed May 12, 2021
1 parent b75246e commit c9e0333
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion promgen/notification/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def splay(self, address):

def _send(self, address, data):
user = User.objects.get(username=address)
for sender in models.Sender.objects.filter(obj=user):
for sender in models.Sender.objects.filter(obj=user, enabled=True):
try:
sender.driver._send(sender.value, data)
except:
Expand Down

0 comments on commit c9e0333

Please sign in to comment.