Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
illusional committed Apr 23, 2024
1 parent ace5107 commit 82b3a65
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/graphql/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ async def families(
id: GraphQLFilter[int] | None = None,
external_id: GraphQLFilter[str] | None = None,
) -> list['GraphQLFamily']:
# don't need a data loader here as we're presuming we're not often running
# don't need a data loader here as we're presuming we're not often running
# the "families" method for many projects at once. If so, we might need to fix that
connection = info.context['connection']
families = await FamilyLayer(connection).query(
Expand Down
9 changes: 6 additions & 3 deletions db/python/layers/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,12 @@ async def get_pedigree(
mapped_rows.append(
{
'family_id': fmap.get(r.family_id, str(r.family_id)),
'individual_id': pmap.get(r.individual_id, r.individual_id) or empty_participant_value,
'paternal_id': pmap.get(r.paternal_id, r.paternal_id) or empty_participant_value),
'maternal_id': pmap.get(r.maternal_id, r.maternal_id) or empty_participant_value),
'individual_id': pmap.get(r.individual_id, r.individual_id)
or empty_participant_value,
'paternal_id': pmap.get(r.paternal_id, r.paternal_id)
or empty_participant_value,
'maternal_id': pmap.get(r.maternal_id, r.maternal_id)
or empty_participant_value,
'sex': r.sex,
'affected': r.affected,
'notes': r.notes,
Expand Down

0 comments on commit 82b3a65

Please sign in to comment.