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/data/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/data/views.py')
-rw-r--r-- | gn_auth/auth/authorisation/data/views.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gn_auth/auth/authorisation/data/views.py b/gn_auth/auth/authorisation/data/views.py index 7ed69e3..38eaad6 100644 --- a/gn_auth/auth/authorisation/data/views.py +++ b/gn_auth/auth/authorisation/data/views.py @@ -11,6 +11,9 @@ from MySQLdb.cursors import DictCursor from authlib.integrations.flask_oauth2.errors import _HTTPException from flask import request, jsonify, Response, Blueprint, current_app as app + +from gn_libs import mysqldb as gn3db + from gn_auth import jobs from gn_auth.commands import run_async_cmd @@ -19,7 +22,6 @@ from gn_auth.auth.errors import InvalidData, NotFoundError from gn_auth.auth.authorisation.resources.groups.models import group_by_id from ...db import sqlite3 as db -from ...db import mariadb as gn3db from ...db.sqlite3 import with_db_connection from ..checks import require_json |