aboutsummaryrefslogtreecommitdiff
path: root/scripts/assign_data_to_default_admin.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2024-11-22 10:02:40 -0600
committerFrederick Muriuki Muriithi2024-11-22 10:17:19 -0600
commit463194da3cfc077513e98948dd31cfd60d2eb0e0 (patch)
tree90716f2a8e7b64772871df24e28f6c5a788deca4 /scripts/assign_data_to_default_admin.py
parentcab78050064424d31534c3bba9c68080108dacd6 (diff)
downloadgn-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 'scripts/assign_data_to_default_admin.py')
-rw-r--r--scripts/assign_data_to_default_admin.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/assign_data_to_default_admin.py b/scripts/assign_data_to_default_admin.py
index d10b687..69fc50c 100644
--- a/scripts/assign_data_to_default_admin.py
+++ b/scripts/assign_data_to_default_admin.py
@@ -11,10 +11,9 @@ from pathlib import Path
from uuid import UUID, uuid4
import click
+from gn_libs import mysqldb as biodb
from MySQLdb.cursors import DictCursor
-from gn_auth.auth.db import mariadb as biodb
-
import gn_auth.auth.db.sqlite3 as authdb
from gn_auth.auth.authentication.users import User
from gn_auth.auth.authorisation.roles.models import (