From c76fa687c5d7648ac5d3493b5b0f32f90452e606 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Tue, 2 Apr 2024 04:23:33 +0300 Subject: Remove unused group argument. --- gn_auth/auth/authorisation/resources/phenotype.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gn_auth') 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 -- cgit v1.2.3