diff options
Diffstat (limited to 'gn_auth/auth/authorisation/data/phenotypes.py')
-rw-r--r-- | gn_auth/auth/authorisation/data/phenotypes.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/data/phenotypes.py b/gn_auth/auth/authorisation/data/phenotypes.py index 17555ec..3baac75 100644 --- a/gn_auth/auth/authorisation/data/phenotypes.py +++ b/gn_auth/auth/authorisation/data/phenotypes.py @@ -1,5 +1,6 @@ """Handle linking of Phenotype data to the Auth(entic|oris)ation system.""" import uuid +from dataclasses import asdict from typing import Any, Iterable from MySQLdb.cursors import DictCursor @@ -136,6 +137,6 @@ def link_phenotype_data( return { "description": ( f"Successfully linked {len(traits)} traits to group."), - "group": dictify(group), + "group": asdict(group), "traits": params } |