Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: removed temp logs in email digest #35663

Merged
merged 1 commit into from
Oct 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions openedx/core/djangoapps/notifications/email/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""
import datetime
import json
import logging

from bs4 import BeautifulSoup
from django.conf import settings
Expand Down Expand Up @@ -32,7 +31,6 @@


User = get_user_model()
log = logging.getLogger(__name__)


def is_email_notification_flag_enabled(user=None):
Expand Down Expand Up @@ -413,6 +411,4 @@ def get_updated_preference(pref):
if pref_value else EmailCadence.NEVER
type_prefs['email_cadence'] = cadence_value
preference.save()
if not user.id:
log.info(f"<Digest-One-Click-Unsubscribe> - user.id is null - {encrypted_username} ")
notification_preference_unsubscribe_event(user)
Loading