diff options
| author | Frederick Muriuki Muriithi | 2025-07-14 12:57:50 -0500 |
|---|---|---|
| committer | Frederick Muriuki Muriithi | 2025-07-14 13:26:55 -0500 |
| commit | d9f20d57f2121833f2e8910ad5f40943f564297a (patch) | |
| tree | 9dd3e0edf37a86ac32a5490be0e8c4236950f5a4 /uploader/publications | |
| parent | d54b00a0901cd5ff8b9f7c5588c3d47dcda80966 (diff) | |
| download | gn-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.py | 2 | ||||
| -rw-r--r-- | uploader/publications/views.py | 3 |
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__) |
