From 5acd92721012bc519cb552d1a099d024c7b3f895 Mon Sep 17 00:00:00 2001 From: Alan Orth Date: Tue, 6 Oct 2020 15:12:13 +0300 Subject: [PATCH] dspace_statistics_api: Sort imports with isort --- dspace_statistics_api/app.py | 3 +-- dspace_statistics_api/util.py | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dspace_statistics_api/app.py b/dspace_statistics_api/app.py index 4c577ba..009ee88 100644 --- a/dspace_statistics_api/app.py +++ b/dspace_statistics_api/app.py @@ -1,8 +1,7 @@ import falcon from .database import DatabaseManager -from .items import get_views -from .items import get_downloads +from .items import get_downloads, get_views from .util import validate_items_post_parameters diff --git a/dspace_statistics_api/util.py b/dspace_statistics_api/util.py index b5c3137..45fda51 100644 --- a/dspace_statistics_api/util.py +++ b/dspace_statistics_api/util.py @@ -8,11 +8,12 @@ def get_statistics_shards(): Returns: str:A list of Solr statistics shards separated by commas. """ - from .config import SOLR_SERVER - import re + import requests + from .config import SOLR_SERVER + # Initialize an empty list for statistics core years statistics_core_years = []