From 63ce15a547ff5e6da7fe6437ec34fa2d6fa0160f Mon Sep 17 00:00:00 2001 From: Brian Moe <brian.moe@ligo.org> Date: Fri, 16 Nov 2012 12:41:22 -0600 Subject: [PATCH] Include FAR threshold in trigger display --- userprofile/models.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/userprofile/models.py b/userprofile/models.py index 270be3dc1..50eeecc12 100644 --- a/userprofile/models.py +++ b/userprofile/models.py @@ -55,8 +55,12 @@ class Trigger(models.Model): ) def userlessDisplay(self): - return ("(%s) & (%s) -> %s") % ( + thresh = "" + if self.farThresh: + thresh = " & (far < %s)" % self.farThresh + return ("(%s) & (%s)%s -> %s") % ( "|".join([a.display for a in self.atypes.all()]) or "any type", "|".join([a.name for a in self.labels.all()]) or "creating", + thresh, ",".join([x.desc for x in self.contacts.all()]) ) -- GitLab