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 = []