From 5ca1edd6df785c7ba294f4088da639848fe21380 Mon Sep 17 00:00:00 2001 From: Petr Date: Thu, 9 May 2019 10:14:58 +0200 Subject: [PATCH] fix signals import avoid having `signals` in superdesk which makes it impossible to import `superdesk.signals` module --- server/analytics/stats/gen_archive_statistics.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/analytics/stats/gen_archive_statistics.py b/server/analytics/stats/gen_archive_statistics.py index db054a181..6933b8426 100644 --- a/server/analytics/stats/gen_archive_statistics.py +++ b/server/analytics/stats/gen_archive_statistics.py @@ -8,7 +8,7 @@ # AUTHORS and LICENSE files distributed with this source code, or # at https://www.sourcefabric.org/superdesk/license -from superdesk import Command, command, get_resource_service, Option, signals +from superdesk import Command, command, get_resource_service, Option from superdesk.logging import logger from superdesk.utc import utcnow from superdesk.metadata.item import ITEM_STATE, ITEM_TYPE, FORMAT, SCHEDULE_SETTINGS, \ @@ -16,6 +16,7 @@ from superdesk.text_utils import get_par_count from superdesk.celery_task_utils import get_lock_id from superdesk.lock import lock, unlock +from superdesk.signals import signals from analytics.stats.common import STAT_TYPE, OPERATION from analytics.stats import featuremedia_updates, desk_transitions