From 0065e3c81e0fc149b721459c11aa48bf3425ab98 Mon Sep 17 00:00:00 2001 From: Matthew Piatetsky Date: Thu, 18 Jan 2018 18:01:07 -0500 Subject: [PATCH] Add some more data for debugging bundling test and try potential fix --- common/djangoapps/student/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/djangoapps/student/views.py b/common/djangoapps/student/views.py index 2ef3f72a12..f2f811b5d6 100644 --- a/common/djangoapps/student/views.py +++ b/common/djangoapps/student/views.py @@ -76,7 +76,7 @@ from lms.djangoapps.verify_student.models import SoftwareSecurePhotoVerification from notification_prefs.views import enable_notifications from openedx.core.djangoapps import monitoring_utils from openedx.core.djangoapps.catalog.utils import ( - get_programs_with_type, get_visible_sessions_for_entitlement, get_pseudo_session_for_entitlement + get_programs, get_programs_with_type, get_visible_sessions_for_entitlement, get_pseudo_session_for_entitlement ) from openedx.core.djangoapps.certificates.api import certificates_viewable_for_course from openedx.core.djangoapps.credit.email_utils import get_credit_provider_display_names, make_providers_strings @@ -815,10 +815,10 @@ def dashboard(request): if bundles_on_dashboard_flag.is_enabled(): programs_data = meter.programs if programs_data: + meter.programs = [get_programs(request.site, uuid=programs_data[0]['uuid'])] program_data = meter.programs[0] program_data = ProgramDataExtender(program_data, request.user).extend() - program_data.pop('courses') skus = program_data.get('skus') urls = {