From 60d67d19b67ac86f964bb1ef812d44cf9f100c5c Mon Sep 17 00:00:00 2001 From: EddieLF <34049565+EddieLF@users.noreply.github.com> Date: Tue, 14 May 2024 13:51:58 +1000 Subject: [PATCH] Fix individual metadata for seqr layer headers (#774) * Fix individual metadata for seqr layer headers * Clean up fix --- db/python/layers/participant.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {