Skip to content
Snippets Groups Projects
Commit 63ce15a5 authored by Brian Moe's avatar Brian Moe
Browse files

Include FAR threshold in trigger display

parent d3dced26
No related branches found
No related tags found
No related merge requests found
......@@ -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()])
)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment