diff options
author | Munyoki Kilyungi | 2024-03-21 10:23:24 +0300 |
---|---|---|
committer | Munyoki Kilyungi | 2024-03-21 10:23:24 +0300 |
commit | 9f236d1257cf64c630d2fe0c59d580e32568fc2f (patch) | |
tree | 15a462f5132dd3b5002f49919fe91080d2962113 /gn_auth/auth/authorisation | |
parent | ccd4ee5405f6a302283bac80dee15919dd3c6ffe (diff) | |
download | gn-auth-9f236d1257cf64c630d2fe0c59d580e32568fc2f.tar.gz |
Return empty tuples when metadata is queried for data.
* gn_auth/auth/authorisation/resources/models.py (resource_data): A
metadata resource is not linked to any data so we return an empty
tuple.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'gn_auth/auth/authorisation')
-rw-r--r-- | gn_auth/auth/authorisation/resources/models.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gn_auth/auth/authorisation/resources/models.py b/gn_auth/auth/authorisation/resources/models.py index 60d24ff..9e06aa8 100644 --- a/gn_auth/auth/authorisation/resources/models.py +++ b/gn_auth/auth/authorisation/resources/models.py @@ -185,6 +185,9 @@ def resource_data(conn, resource, offset: int = 0, limit: Optional[int] = None) "mrna": mrna_resource_data, "genotype": genotype_resource_data, "phenotype": phenotype_resource_data, + "phenotype-metadata": lambda *args: tuple(), + "genotype-metadata": lambda *args: tuple(), + "mrna-metadata": lambda *args: tuple(), "system": lambda *args: tuple(), "group": lambda *args: tuple() } |