From f4dbc27d9932c4c80df60066e97b25eb8d986085 Mon Sep 17 00:00:00 2001 From: Branson Stephens <branson.stephens@ligo.org> Date: Sat, 27 Sep 2014 17:26:21 -0500 Subject: [PATCH] Updated RSS feed templates/logic for pipeline instead of analysis type. Still doesn't work. Somehow seems to depend on obsolete sites framework. --- gracedb/feeds.py | 2 +- templates/feeds/index.html | 10 +++++----- templates/feeds/latest_title.html | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gracedb/feeds.py b/gracedb/feeds.py index 111b4a864..fc90ad580 100644 --- a/gracedb/feeds.py +++ b/gracedb/feeds.py @@ -41,7 +41,7 @@ class EventFeed(Feed): title = "GraceDB %s Events" % group.name else: pipeline = Pipeline.objects.filter(name__iexact=bits[1]) - if not pipeline.count(0): + if not pipeline.count(): raise FeedDoesNotExist pipeline = pipeline[0] objs = Event.objects.filter(pipeline=pipeline) diff --git a/templates/feeds/index.html b/templates/feeds/index.html index 4137a15b4..cddf1a9c8 100644 --- a/templates/feeds/index.html +++ b/templates/feeds/index.html @@ -21,17 +21,17 @@ <ul> <li><a href="latest/cbc/">CBC</a></li> <ul> - <li><a href="latest/cbc/lowmass">Low Mass</a></li> - <li><a href="latest/cbc/highmass">High Mass</a></li> - <li><a href="latest/cbc/grb">GRB</a></li> + <li><a href="latest/cbc/gstlal">gstlal</a></li> + <li><a href="latest/cbc/gstlal-spiir">gstlal-spiir</a></li> +<!-- <li><a href="latest/cbc/grb">GRB</a></li> --> <li><a href="latest/cbc/ringdown">Ringdown</a></li> <li><a href="latest/cbc/mbtaonline">MBTA Online</a></li> </ul> </ul> - <ul> +<!-- <ul> <li><a href="latest/stochastic/">Stochastic</a></li> - </ul> + </ul> --> </p> {% endblock %} diff --git a/templates/feeds/latest_title.html b/templates/feeds/latest_title.html index d0b8c11b2..9bbdabe1e 100644 --- a/templates/feeds/latest_title.html +++ b/templates/feeds/latest_title.html @@ -1 +1 @@ -{{ obj.graceid }} {{ obj.group.name }} / {{ obj.get_analysisType_display }} +{{ obj.graceid }} {{ obj.group.name }} / {{ obj.pipeline.name }} -- GitLab