Skip to content
This repository has been archived by the owner on May 12, 2022. It is now read-only.

Commit

Permalink
small nit
Browse files Browse the repository at this point in the history
  • Loading branch information
shafqatfarhan committed Dec 11, 2018
1 parent 479affd commit 7dfb0ce
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions edx_notifications/timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from datetime import datetime, timedelta

from importlib import import_module
from django.conf import settings

from django.dispatch import receiver
from edx_notifications.data import NotificationCallbackTimer
Expand All @@ -36,12 +35,6 @@ def poll_and_execute_timers(**kwargs): # pylint: disable=unused-argument
log.info('Starting poll_and_execute_timers()...')
store = notification_store()

if settings.FEATURES.get('ENABLE_NOTIFICATIONS', False) == False:
log.info('Feature flag "ENABLE_NOTIFICATIONS" is set to False')

if settings.FEATURES.get('ENABLE_DISCUSSION_EMAIL_DIGEST', False) == False:
log.info('Feature flag "ENABLE_DISCUSSION_EMAIL_DIGEST" is set to False')

timers_not_executed = store.get_all_active_timers()

for timer in timers_not_executed:
Expand Down

0 comments on commit 7dfb0ce

Please sign in to comment.