Add trim to instructor deduplicator
Current instructor list on program marketing page has duplicate professors because they are manually entered and some have trailing spaces. This fixes that.
This commit is contained in:
@@ -679,5 +679,5 @@ class ProgramMarketingDataExtender(ProgramDataExtender):
|
||||
|
||||
# Deduplicate program instructors using instructor name
|
||||
self.instructors.update(
|
||||
{instructor.get('name'): instructor for instructor in course_instructors.get('instructors', [])}
|
||||
{instructor.get('name', '').strip(): instructor for instructor in course_instructors.get('instructors', [])}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user