From 3aff9c634f756a2a69aeb261034e0724ccd3af4c Mon Sep 17 00:00:00 2001 From: Brian Moe <brian.moe@ligo.org> Date: Mon, 16 Aug 2010 15:02:22 -0500 Subject: [PATCH] Bug fix. Custom alerts with wildcard analysis type did not work. --- gracedb/alert.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gracedb/alert.py b/gracedb/alert.py index dd475c42f..b21e1987d 100644 --- a/gracedb/alert.py +++ b/gracedb/alert.py @@ -37,7 +37,9 @@ def issueAlertForLabel(event, label, doxmpp): # Email profileRecips = [] atype = AnalysisType.objects.filter(code=event.analysisType)[0] + # Triggers on given label matching analysis type OR with no atype (wildcard type) triggers = label.trigger_set.filter(atypes=atype) + triggers = triggers | label.trigger_set.filter(atypes=None) for trigger in triggers: for recip in trigger.contacts.all(): profileRecips.append(recip.email) -- GitLab