diff --git a/db/python/layers/participant.py b/db/python/layers/participant.py index 25b2f8fed..6b1bffd71 100644 --- a/db/python/layers/participant.py +++ b/db/python/layers/participant.py @@ -767,7 +767,8 @@ async def get_seqr_individual_template( rows = [{h: r.get(h) for h in set_headers if h in r} for r in rows] headers = [] # get ordered headers if we have data for it for h in SeqrMetadataKeys.get_ordered_headers(): - if header := lheader_to_json.get(h.value.lower()) in set_headers: + header = lheader_to_json.get(h.value.lower()) + if header in set_headers: headers.append(header) return {