diff --git a/invenio_stats/aggregations.py b/invenio_stats/aggregations.py index 7f3b8c3..de8c8a0 100644 --- a/invenio_stats/aggregations.py +++ b/invenio_stats/aggregations.py @@ -11,7 +11,6 @@ import math from collections import OrderedDict -from copy import deepcopy from datetime import datetime from functools import wraps diff --git a/invenio_stats/utils.py b/invenio_stats/utils.py index ca64f6a..3ded52b 100644 --- a/invenio_stats/utils.py +++ b/invenio_stats/utils.py @@ -13,12 +13,11 @@ from base64 import b64encode from math import ceil -from flask import current_app, request, session +from flask import request, session from flask_login import current_user from geolite2 import geolite2 from invenio_cache import current_cache from invenio_search.engine import dsl -from werkzeug.utils import import_string def get_anonymization_salt(ts):