Skip to content

Commit

Permalink
Merge pull request #153 from Ensembl/bugfix/fix_context
Browse files Browse the repository at this point in the history
Change the way `parent_key` value is assigned
  • Loading branch information
bilalebi authored Aug 21, 2024
2 parents 2e64639 + 798bd3e commit b011cf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion graphql_service/resolver/gene_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ def set_db_conn_for_uuid(info, uuid):
conn = {"db_conn": db_conn, "data_loader": BatchLoaders(db_conn)}

parent_key = get_path_parent_key(info)
info.context.setdefault(parent_key, conn)
info.context[parent_key] = conn


def get_db_conn(info):
Expand Down

0 comments on commit b011cf1

Please sign in to comment.