Skip to content

Commit

Permalink
Merge pull request #490 from ucsd-ets/hasnain/EDE-1832
Browse files Browse the repository at this point in the history
Fix programs showing old course runs
  • Loading branch information
hasnain-saeed authored Nov 22, 2021
2 parents 5231bd2 + 7ce41df commit cfd9f82
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -160,11 +160,15 @@ def get_site_program_uuids(self, client, site):
def fetch_program_details(self, client, uuids):
programs = {}
failure = False
querystring = {
'exclude_utm': 1,
'marketable_enrollable_course_runs_with_archived': 1,
}
for uuid in uuids:
try:
cache_key = PROGRAM_CACHE_KEY_TPL.format(uuid=uuid)
logger.info(u'Requesting details for program {uuid}.'.format(uuid=uuid))
program = client.programs(uuid).get(exclude_utm=1)
program = client.programs(uuid).get(**querystring)
# pathways get added in process_pathways
program['pathway_ids'] = []
programs[cache_key] = program
Expand Down

0 comments on commit cfd9f82

Please sign in to comment.