Skip to content

Commit

Permalink
Update jimi_2.py to handle IndexCodes properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
tcp-bhargav authored Feb 21, 2024
1 parent dae4e34 commit c3164ed
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions server/cp/output/formatter/jimi_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"):
Expand Down

0 comments on commit c3164ed

Please sign in to comment.