Skip to content

Commit 53d55e7

Browse files
authored
Merge pull request #1136 from alphagov/2119-email-due-reminders-limit-to-prod
2119: Limit email reminders to prod
2 parents 74090dd + 92cf812 commit 53d55e7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
"""Command to send reminders email"""
22

3+
import os
4+
35
from django.core.management.base import BaseCommand
46
from ...utils import email_all_specialists_all_detailed_reminders_due
57

68

79
class Command(BaseCommand):
810
def handle(self, *args, **options): # pylint: disable=unused-argument
9-
email_all_specialists_all_detailed_reminders_due()
11+
if os.getenv("COPILOT_ENVIRONMENT_NAME") == "prodenv":
12+
email_all_specialists_all_detailed_reminders_due()

0 commit comments

Comments
 (0)