Skip to content
Snippets Groups Projects
Commit 2ef52992 authored by Jonah Kanner's avatar Jonah Kanner :nerd: Committed by GraceDB
Browse files

note retractions in a comment

parent d34e70ee
No related branches found
No related tags found
No related merge requests found
...@@ -136,11 +136,7 @@ class SupereventPublic(ListView): ...@@ -136,11 +136,7 @@ class SupereventPublic(ListView):
#-- For each superevent, get list of log messages and construct pastro string #-- For each superevent, get list of log messages and construct pastro string
candidates = 0 candidates = 0
for se in context['object_list']: for se in context['object_list']:
viewable_logs = get_objects_for_user(self.request.user,
self.log_view_permission,
se.log_set.all()).filter(tags__name='analyst_comments') #-- change to analyst_comments
se.comments = ' ** '.join([log.comment for log in viewable_logs])
se.maplocal = "/apiweb/superevents/{0}/files/bayestar.png".format(se.superevent_id) se.maplocal = "/apiweb/superevents/{0}/files/bayestar.png".format(se.superevent_id)
#-- Get list of voevents #-- Get list of voevents
...@@ -156,6 +152,15 @@ class SupereventPublic(ListView): ...@@ -156,6 +152,15 @@ class SupereventPublic(ListView):
else: else:
se.retract = False se.retract = False
candidates += 1 candidates += 1
viewable_logs = get_objects_for_user(self.request.user,
self.log_view_permission,
se.log_set.all()).filter(tags__name='analyst_comments') #-- change to analyst_comments
se.comments = ' ** '.join([log.comment for log in viewable_logs])
if se.retract: se.comments += " ** RETRACTED ** "
# -- Read out probabilities # -- Read out probabilities
voe = good_voevents[-1] voe = good_voevents[-1]
......
...@@ -88,6 +88,13 @@ ...@@ -88,6 +88,13 @@
{% endfor %} {% endfor %}
</tbody></table> </tbody></table>
<hr/>
<ul style="list-style-type:square">
<li> Retractions are marked in red</li>
<li> Details in the <a href='https://emfollow.docs.ligo.org/userguide/'>LIGO/Virgo Alerts User Guide</a>
</ul>
<br/><br/><br/>
{% endblock %} {% endblock %}
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