Skip to content

Commit

Permalink
fix: fix cadence value for instant cadence and update version
Browse files Browse the repository at this point in the history
  • Loading branch information
Saad Yousaf authored and saadyousafarbi committed Apr 17, 2024
1 parent a057ed4 commit 6dd5157
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions openedx/core/djangoapps/notifications/email_notifications.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ class EmailCadence:
"""
DAILY = 'Daily'
WEEKLY = 'Weekly'
INSTANTLY = 'Instantly'
IMMEDIATELY = 'Immediately'
NEVER = 'Never'
EMAIL_CADENCE_CHOICES = [
(DAILY, _('Daily')),
(WEEKLY, _('Weekly')),
(INSTANTLY, _('Instantly')),
(IMMEDIATELY, _('Immediately')),
(NEVER, _('Never')),
]
EMAIL_CADENCE_CHOICES_DICT = dict(EMAIL_CADENCE_CHOICES)
Expand Down
2 changes: 1 addition & 1 deletion openedx/core/djangoapps/notifications/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
ADDITIONAL_NOTIFICATION_CHANNEL_SETTINGS = ['email_cadence']

# Update this version when there is a change to any course specific notification type or app.
COURSE_NOTIFICATION_CONFIG_VERSION = 7
COURSE_NOTIFICATION_CONFIG_VERSION = 8


def get_course_notification_preference_config():
Expand Down

0 comments on commit 6dd5157

Please sign in to comment.