Skip to content

Commit

Permalink
fix: use case insensitive check in populate exec ed command (#4373)
Browse files Browse the repository at this point in the history
* fix: use case insensitive check in populate exec ed command
  • Loading branch information
DawoudSheraz authored Jun 28, 2024
1 parent 79f9863 commit 52249a3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ def get_transformed_data(self, partially_filled_csv_dict, product_dict):
'end_date': product_dict['variant']['endDate'],
'restriction_type': (
CourseRunRestrictionType.CustomB2BEnterprise.value
if product_dict['variant'].get('websiteVisibility', None) == 'private'
if product_dict['variant'].get('websiteVisibility', 'None').lower() == 'private'
else None
),
'length': product_dict['durationWeeks'],
Expand Down

0 comments on commit 52249a3

Please sign in to comment.