diff options
Diffstat (limited to 'gn_auth/auth/authorisation/resources/genotype_resource.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/genotype_resource.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gn_auth/auth/authorisation/resources/genotype_resource.py b/gn_auth/auth/authorisation/resources/genotype_resource.py index 03e2e68..206ab61 100644 --- a/gn_auth/auth/authorisation/resources/genotype_resource.py +++ b/gn_auth/auth/authorisation/resources/genotype_resource.py @@ -32,13 +32,12 @@ def link_data_to_resource( """Link Genotype data with a resource.""" with db.cursor(conn) as cursor: params = { - "group_id": str(resource.group.group_id), "resource_id": str(resource.resource_id), "data_link_id": str(data_link_id) } cursor.execute( "INSERT INTO genotype_resources VALUES" - "(:group_id, :resource_id, :data_link_id)", + "(:resource_id, :data_link_id)", params) return params |