Skip to content

Commit

Permalink
feat: remove advertised run check for now (#775)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnagro authored Feb 14, 2024
1 parent ce5ed31 commit 021de1b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions enterprise_catalog/apps/catalog/content_metadata_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,10 @@ def transform_course_metadata_to_visible(course_metadata):
f'transform_course_metadata_to_visible on content_key: {content_key}'
)
course_metadata[FORCE_INCLUSION_METADATA_TAG_KEY] = True
advertised_course_run_uuid = course_metadata.get('advertised_course_run_uuid')
course_run_statuses = []
for course_run in course_metadata.get('course_runs', []):
if course_run.get('uuid') == advertised_course_run_uuid:
course_run['status'] = 'published'
course_run['availability'] = 'Current'
course_run['status'] = 'published'
course_run['availability'] = 'Current'
course_run_statuses.append(course_run.get('status'))
course_metadata['course_run_statuses'] = course_run_statuses
return course_metadata

0 comments on commit 021de1b

Please sign in to comment.