diff options
author | Frederick Muriuki Muriithi | 2024-11-22 10:02:40 -0600 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2024-11-22 10:17:19 -0600 |
commit | 463194da3cfc077513e98948dd31cfd60d2eb0e0 (patch) | |
tree | 90716f2a8e7b64772871df24e28f6c5a788deca4 /gn_auth/auth/authorisation/resources/groups/views.py | |
parent | cab78050064424d31534c3bba9c68080108dacd6 (diff) | |
download | gn-auth-463194da3cfc077513e98948dd31cfd60d2eb0e0.tar.gz |
Use code in gn_libs for MySQL/MariaDB connection.
Update the application to use the gn_libs code for connecting to the
database, rather than using a local module.
Diffstat (limited to 'gn_auth/auth/authorisation/resources/groups/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/resources/groups/views.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gn_auth/auth/authorisation/resources/groups/views.py b/gn_auth/auth/authorisation/resources/groups/views.py index 920f504..368284f 100644 --- a/gn_auth/auth/authorisation/resources/groups/views.py +++ b/gn_auth/auth/authorisation/resources/groups/views.py @@ -9,10 +9,10 @@ from dataclasses import asdict from MySQLdb.cursors import DictCursor from flask import jsonify, Response, Blueprint, current_app -from gn_auth.auth.requests import request_json +from gn_libs import mysqldb as gn3db +from gn_auth.auth.requests import request_json from gn_auth.auth.db import sqlite3 as db -from gn_auth.auth.db import mariadb as gn3db from gn_auth.auth.db.sqlite3 import with_db_connection from gn_auth.auth.authorisation.privileges import privileges_by_ids @@ -169,7 +169,7 @@ def unlinked_genotype_data( return tuple(dict(row) for row in cursor.fetchall()) def unlinked_phenotype_data( - authconn: db.DbConnection, gn3conn: gn3db.DbConnection, + authconn: db.DbConnection, gn3conn: gn3db.Connection, group: Group) -> tuple[dict, ...]: """ Retrieve all phenotype data linked to a group but not linked to any |