From 8e50d7a834c1ec7f5a0483e3dc22571248a28dcc Mon Sep 17 00:00:00 2001 From: Everaldo Date: Wed, 16 Oct 2024 10:40:00 -0700 Subject: [PATCH] Move merge dicts to parser. --- src/hub/dataload/sources/civic/civic_parser.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hub/dataload/sources/civic/civic_parser.py b/src/hub/dataload/sources/civic/civic_parser.py index b4d50e12..a25e9970 100644 --- a/src/hub/dataload/sources/civic/civic_parser.py +++ b/src/hub/dataload/sources/civic/civic_parser.py @@ -39,10 +39,10 @@ def load_data(data_folder): variant_data = json.load(open(infile)) doc = {} - doc = merge_dicts(doc, variant_data["ContributorAvatars"]["data"]["variant"]) + doc = merge_dicts(doc, variant_data["ContributorAvatars"]["data"]) doc = merge_dicts(doc, variant_data["GeneVariant"]["data"]["variant"]) doc = merge_dicts(doc, variant_data["VariantDetail"]["data"]["variant"]) - doc = merge_dicts(doc, variant_data["VariantSummary"]["data"]) + doc = merge_dicts(doc, variant_data["VariantSummary"]["data"]["variant"]) if set(['error', 'status']) != set(doc.keys()): print("### doc")