From 2db875c8dccb591e7ac83e0eb05b0dd7b361fe7b Mon Sep 17 00:00:00 2001
From: Brandon Piotrzkowski <piotrzk3@uwm.edu>
Date: Mon, 18 Nov 2019 17:29:08 -0600
Subject: [PATCH] Try getting ivorn from event

---
 gracedb/annotations/voevent_utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gracedb/annotations/voevent_utils.py b/gracedb/annotations/voevent_utils.py
index 6c0f5a8c1..f91068305 100644
--- a/gracedb/annotations/voevent_utils.py
+++ b/gracedb/annotations/voevent_utils.py
@@ -305,7 +305,7 @@ def construct_voevent_file(obj, voevent, request=None):
                 emcoinc_params.append(p_extid)
 
             ## External IVORN
-            if voevent.ivorn:
+            if event.ivorn:
                 p_extivorn = vp.Param(
                     "External_Ivorn",
                     value=ext_event.trigger_id,
-- 
GitLab