From d9203d6a6469b179bd13aa1fb179f717f8128b2b Mon Sep 17 00:00:00 2001 From: Luis Felipe Castano Date: Tue, 5 Mar 2024 11:24:44 -0500 Subject: [PATCH] fix: pep 8 violations --- lms/djangoapps/discussion/tests/test_views.py | 2 +- lms/djangoapps/discussion/views.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/discussion/tests/test_views.py b/lms/djangoapps/discussion/tests/test_views.py index a3515fe0c5c..f6a602cbb45 100644 --- a/lms/djangoapps/discussion/tests/test_views.py +++ b/lms/djangoapps/discussion/tests/test_views.py @@ -2281,7 +2281,7 @@ class ForumMFETestCase(ForumsEnableMixin, SharedModuleStoreTestCase): """ features_with_enable_mfe_settings = settings.FEATURES.copy() - features_with_enable_mfe_settings['ENABLE_MFE_FOR_TESTING']=True + features_with_enable_mfe_settings['ENABLE_MFE_FOR_TESTING'] = True def setUp(self): super().setUp() diff --git a/lms/djangoapps/discussion/views.py b/lms/djangoapps/discussion/views.py index d7645bcbf16..458afd89525 100644 --- a/lms/djangoapps/discussion/views.py +++ b/lms/djangoapps/discussion/views.py @@ -334,7 +334,7 @@ def redirect_thread_url_to_new_mfe(request, course_id, thread_id): course_key = CourseKey.from_string(course_id) discussions_mfe_enabled = ENABLE_DISCUSSIONS_MFE.is_enabled(course_key) redirect_url = None - + if discussions_mfe_enabled and use_discussions_mfe(course_key.org): mfe_base_url = settings.DISCUSSIONS_MICROFRONTEND_URL if thread_id: