From c3164ed33a4f7dafa0f977b43ada131c05876565 Mon Sep 17 00:00:00 2001 From: tcp-bhargav <115644367+tcp-bhargav@users.noreply.github.com> Date: Wed, 21 Feb 2024 16:26:33 -0500 Subject: [PATCH] Update jimi_2.py to handle IndexCodes properly. --- server/cp/output/formatter/jimi_2.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/cp/output/formatter/jimi_2.py b/server/cp/output/formatter/jimi_2.py index 5f4d0fe2..6c209657 100644 --- a/server/cp/output/formatter/jimi_2.py +++ b/server/cp/output/formatter/jimi_2.py @@ -708,7 +708,16 @@ def _find_qcode_item(code, items, jimi_only=True): for item in items: if item.get("qcode") == code: if not jimi_only: + pass + if item.get("in_jimi"): return item + elif item.get("parent"): + return _find_qcode_item(item["parent"], items, jimi_only) + break + + elif item.get("semaphore_id") == code: + if not jimi_only: + pass if item.get("in_jimi"): return item elif item.get("parent"):