From 8a84c4d6762446e5fdf9f9121f539c89419ae6a0 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Fri, 22 Nov 2024 12:16:28 -0600 Subject: Use gn-libs code for db connection. Use the code in gn-libs to connect to the database, rather than a local module. --- uploader/platforms/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uploader/platforms/views.py') diff --git a/uploader/platforms/views.py b/uploader/platforms/views.py index 2d61b6a..c20ab44 100644 --- a/uploader/platforms/views.py +++ b/uploader/platforms/views.py @@ -1,5 +1,6 @@ """The endpoints for the platforms""" from MySQLdb.cursors import DictCursor +from gn_libs.mysqldb import database_connection from flask import ( flash, request, @@ -10,7 +11,6 @@ from flask import ( from uploader.ui import make_template_renderer from uploader.authorisation import require_login -from uploader.db_utils import database_connection from uploader.species.models import all_species, species_by_id from uploader.datautils import safe_int, order_by_family, enumerate_sequence -- cgit v1.2.3