1
0
mirror of https://github.com/ilri/dspace-statistics-api.git synced 2024-11-22 06:15:02 +01:00

Sort imports with isort

This commit is contained in:
Alan Orth 2019-11-27 12:31:04 +02:00
parent 4ff1fd4a22
commit cb3c3d37fa
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
3 changed files with 15 additions and 9 deletions

View File

@ -1,6 +1,7 @@
from .database import DatabaseManager
import falcon import falcon
from .database import DatabaseManager
class RootResource: class RootResource:
def on_get(self, req, resp): def on_get(self, req, resp):

View File

@ -1,12 +1,15 @@
from .config import DATABASE_NAME
from .config import DATABASE_USER
from .config import DATABASE_PASS
from .config import DATABASE_HOST
from .config import DATABASE_PORT
import falcon import falcon
import psycopg2 import psycopg2
import psycopg2.extras import psycopg2.extras
from .config import (
DATABASE_HOST,
DATABASE_NAME,
DATABASE_PASS,
DATABASE_PORT,
DATABASE_USER,
)
class DatabaseManager: class DatabaseManager:
"""Manage database connection.""" """Manage database connection."""

View File

@ -29,11 +29,13 @@
# See: https://solrclient.readthedocs.io/en/latest/SolrClient.html # See: https://solrclient.readthedocs.io/en/latest/SolrClient.html
# See: https://wiki.duraspace.org/display/DSPACE/Solr # See: https://wiki.duraspace.org/display/DSPACE/Solr
import re
import psycopg2.extras
import requests
from .config import SOLR_SERVER from .config import SOLR_SERVER
from .database import DatabaseManager from .database import DatabaseManager
import psycopg2.extras
import re
import requests
# Enumerate the cores in Solr to determine if statistics have been sharded into # Enumerate the cores in Solr to determine if statistics have been sharded into