From 450f881308f0b0495ea02ea5504fa069ad56edf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Felipe=20Berm=C3=BAdez-Mendoza?= Date: Thu, 6 Nov 2025 16:59:25 +0100 Subject: [PATCH] chore: address comment by Copilot. --- .../management/commands/goal_reminder_email.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py b/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py index 4b6f37703e..287c613d89 100644 --- a/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py +++ b/lms/djangoapps/course_goals/management/commands/goal_reminder_email.py @@ -73,11 +73,11 @@ def send_ace_message(goal, session_id): message_context = get_base_template_context(site) course_home_url = get_learning_mfe_home_url(course_key=goal.course_key, url_fragment='home') - - goals_unsubscribe_url = ( - f'{configuration_helpers.get_value("LEARNING_MICROFRONTEND_URL", settings.LEARNING_MICROFRONTEND_URL)}' - f'/goal-unsubscribe/{goal.unsubscribe_token}' + learning_microfrontend_url = configuration_helpers.get_value( + 'LEARNING_MICROFRONTEND_URL', + settings.LEARNING_MICROFRONTEND_URL, ) + goals_unsubscribe_url = f'{learning_microfrontend_url}/goal-unsubscribe/{goal.unsubscribe_token}' language = get_user_preference(user, LANGUAGE_KEY) # Code to allow displaying different banner images for different languages