From a07458364d5270807667d382f701af6fcdfb7254 Mon Sep 17 00:00:00 2001 From: Anna Waldron Date: Tue, 22 Oct 2019 14:44:00 -0700 Subject: [PATCH] Use new function for getting pkt defn in openmct endpoint (#105) --- ait/gui/__init__.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ait/gui/__init__.py b/ait/gui/__init__.py index 1b8d5e70..356b155c 100644 --- a/ait/gui/__init__.py +++ b/ait/gui/__init__.py @@ -692,11 +692,7 @@ def handle(): while not wsock.closed: try: uid, data = session.telemetry.popleft(timeout=30) - pkt_defn = None - for k, v in tlmdict.iteritems(): - if v.uid == uid: - pkt_defn = v - break + pkt_defn = getPacketDefn(uid) wsock.send(json.dumps({ 'packet': pkt_defn.name,