Merge pull request #17273 from edx/try_bundling_test_fix

Request correct program for bundling test
This commit is contained in:
Matthew Piatetsky
2018-01-22 13:31:07 -05:00
committed by GitHub

View File

@@ -814,8 +814,9 @@ 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'])]
if programs_data and inverted_programs and inverted_programs.values():
program_uuid = inverted_programs.values()[0][0]['uuid']
meter.programs = [get_programs(request.site, uuid=program_uuid)]
program_data = meter.programs[0]
program_data = ProgramDataExtender(program_data, request.user).extend()