Skip to content

Commit

Permalink
Merge pull request #97 from edly-io/tai/fix_title_in_course_run_object
Browse files Browse the repository at this point in the history
Fix: Title override not being saved correctly
  • Loading branch information
taimoor-ahmed-1 authored Nov 11, 2024
2 parents 48bd154 + 40c3049 commit 1cd3fdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion course_discovery/apps/course_metadata/data_loaders/api.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import concurrent.futures
import html
import logging
import math
import threading
Expand Down Expand Up @@ -259,7 +260,7 @@ def format_course_run_data(self, body, course=None):
'enrollment_end': self.parse_date(body['enrollment_end']),
'hidden': body.get('hidden', False),
'license': body.get('license') or '', # license cannot be None
'title_override': body['name'], # we support Studio edits, even though Publisher also owns titles
'title_override': html.unescape(body['name']), # we support Studio edits, even though Publisher also owns titles
'pacing_type': self.get_pacing_type(body),
'invite_only': body.get('invitation_only', False),
}
Expand Down

0 comments on commit 1cd3fdd

Please sign in to comment.