Skip to content

Commit

Permalink
Add group to yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
ieuans committed Oct 11, 2023
1 parent 84ee945 commit 7a22a95
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyconceptlibraryclient/phenotypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@ def __format_for_download(self, data: dict | None) -> list | None:
result[key].append(new_concept)
continue

if key == 'group':
result[key] = value['id']
continue

if isinstance(value, list):
fields = {k: [v[k] for v in value] for k in value[0]}
field_keys = fields.keys()
Expand Down

0 comments on commit 7a22a95

Please sign in to comment.