From fac330246b1ae6464b6a927f6efe6a73c442d98a Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Tue, 28 Oct 2014 22:07:17 +0100 Subject: [PATCH] Removing unnecesary print --- taiga/projects/notifications/services.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/taiga/projects/notifications/services.py b/taiga/projects/notifications/services.py index eac805e2..ba08918e 100644 --- a/taiga/projects/notifications/services.py +++ b/taiga/projects/notifications/services.py @@ -207,7 +207,7 @@ def send_notifications(obj, *, history): # If we are the min interval is 0 it just work in a synchronous and spamming way if settings.CHANGE_NOTIFICATIONS_MIN_INTERVAL == 0: - send_sync_notifications(notification.id) + send_sync_notifications(notification.id) @transaction.atomic def send_sync_notifications(notification_id): @@ -222,7 +222,6 @@ def send_sync_notifications(notification_id): now = timezone.now() time_diff = now - notification.updated_datetime if time_diff.seconds < settings.CHANGE_NOTIFICATIONS_MIN_INTERVAL: - print(time_diff.seconds) return history_entries = tuple(notification.history_entries.all().order_by("created_at"))