diff options
author | Frederick Muriuki Muriithi | 2024-04-02 04:23:33 +0300 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-04-02 04:23:33 +0300 |
commit | c76fa687c5d7648ac5d3493b5b0f32f90452e606 (patch) | |
tree | 61c32bd48af83deda596e58734ee14f1049e2a0f /gn_auth/auth | |
parent | fba726ebb987bf8b5c015f2df18be0c78ea32f7d (diff) | |
download | gn-auth-c76fa687c5d7648ac5d3493b5b0f32f90452e606.tar.gz |
Remove unused group argument.
Diffstat (limited to 'gn_auth/auth')
-rw-r--r-- | gn_auth/auth/authorisation/resources/phenotype.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gn_auth/auth/authorisation/resources/phenotype.py b/gn_auth/auth/authorisation/resources/phenotype.py index cd3f23d..6af3b0a 100644 --- a/gn_auth/auth/authorisation/resources/phenotype.py +++ b/gn_auth/auth/authorisation/resources/phenotype.py @@ -28,18 +28,16 @@ def resource_data( def link_data_to_resource( conn: db.DbConnection, resource: Resource, - group: Group, data_link_id: uuid.UUID) -> dict: """Link Phenotype data with a resource.""" with db.cursor(conn) as cursor: params = { - "group_id": str(group.group_id), "resource_id": str(resource.resource_id), "data_link_id": str(data_link_id) } cursor.execute( "INSERT INTO phenotype_resources VALUES" - "(:group_id, :resource_id, :data_link_id)", + "(:resource_id, :data_link_id)", params) return params |