Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Title override not being saved correctly #97

Merged
merged 1 commit into from
Nov 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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