Skip to content
Snippets Groups Projects
Commit bfa68bf4 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Bugfix to Citations section of superevent VOEvent

parent 776d89f0
No related branches found
No related tags found
No related merge requests found
......@@ -451,9 +451,9 @@ def construct_voevent_file(superevent, voevent, request=None,
v.set_WhereWhen(ww)
############ Citation ############################
if event.voevent_set.count()>1:
if superevent.voevent_set.count() > 1:
c = Citations()
for ve in event.voevent_set.all():
for ve in superevent.voevent_set.all():
# Oh, actually we need to exclude *this* voevent.
if ve.N == voevent.N:
continue
......
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