Skip to content

Commit

Permalink
Move merge dicts to parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Oct 16, 2024
1 parent 6f78772 commit 8e50d7a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hub/dataload/sources/civic/civic_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8e50d7a

Please sign in to comment.