Commit 63d26070 by Matt Tuchfarber Committed by GitHub

Merge pull request #16307 from edx/tuchfarber/fix_program_instructor_dedup

Add trim to instructor deduplicator
parents c20c8b21 7305d6f9
......@@ -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', [])}
)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment