From c72908f71941bc04f49140ef55c1a53181c7a123 Mon Sep 17 00:00:00 2001 From: Muhammad Adeel Tajamul <77053848+muhammadadeeltajamul@users.noreply.github.com> Date: Wed, 8 May 2024 11:58:01 +0500 Subject: [PATCH] fix: updated email digest management command (#34729) --- .../notifications/management/commands/send_email_digest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openedx/core/djangoapps/notifications/management/commands/send_email_digest.py b/openedx/core/djangoapps/notifications/management/commands/send_email_digest.py index cfaef2d15f67..79857c18cf8a 100644 --- a/openedx/core/djangoapps/notifications/management/commands/send_email_digest.py +++ b/openedx/core/djangoapps/notifications/management/commands/send_email_digest.py @@ -23,10 +23,10 @@ def add_arguments(self, parser): Adds management commands parser arguments """ cadence_type_choices = [EmailCadence.DAILY, EmailCadence.WEEKLY] - parser.add_argument('cadence_type', choices=cadence_type_choices, required=True) + parser.add_argument('cadence_type', choices=cadence_type_choices) def handle(self, *args, **kwargs): """ Start task to send email digest to users """ - send_digest_email_to_all_users.delay(args=(kwargs['cadence_type'],)) + send_digest_email_to_all_users.delay(kwargs['cadence_type'])