about summary refs log tree commit diff
path: root/uploader/publications
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-14 12:57:50 -0500
committerFrederick Muriuki Muriithi2025-07-14 13:26:55 -0500
commitd9f20d57f2121833f2e8910ad5f40943f564297a (patch)
tree9dd3e0edf37a86ac32a5490be0e8c4236950f5a4 /uploader/publications
parentd54b00a0901cd5ff8b9f7c5588c3d47dcda80966 (diff)
downloadgn-uploader-d9f20d57f2121833f2e8910ad5f40943f564297a.tar.gz
Fix imports
Remove unused imports, update old imports to newer forms and add
missing imports.
Diffstat (limited to 'uploader/publications')
-rw-r--r--uploader/publications/models.py2
-rw-r--r--uploader/publications/views.py3
2 files changed, 1 insertions, 4 deletions
diff --git a/uploader/publications/models.py b/uploader/publications/models.py
index b199991..f37b67d 100644
--- a/uploader/publications/models.py
+++ b/uploader/publications/models.py
@@ -1,6 +1,6 @@
 """Module to handle persistence and retrieval of publication to/from MariaDB"""
 import logging
-from typing import Iterable, Optional
+from typing import Iterable
 
 from MySQLdb.cursors import DictCursor
 
diff --git a/uploader/publications/views.py b/uploader/publications/views.py
index 0608a35..e7aa412 100644
--- a/uploader/publications/views.py
+++ b/uploader/publications/views.py
@@ -1,7 +1,6 @@
 """Endpoints for publications"""
 import json
 
-from MySQLdb.cursors import DictCursor
 from gn_libs.mysqldb import database_connection
 from flask import (
     flash,
@@ -21,8 +20,6 @@ from .models import (
 
 from .datatables import fetch_publications
 
-from gn_libs.debug import __pk__
-
 pubbp = Blueprint("publications", __name__)