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:
parent
4ff1fd4a22
commit
cb3c3d37fa
@ -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):
|
||||||
|
@ -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."""
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user