Skip to content

Commit dcf94db

Browse files
committed
feat: name and description changes to course opti
1 parent 8c5d85d commit dcf94db

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cms/djangoapps/contentstore/views/course_optimizer.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
log = logging.getLogger(__name__)
4040

41+
# Tuple containing zero or more filters for UserTaskStatus listing REST API calls.
4142
STATUS_FILTERS = user_tasks_settings.USER_TASKS_STATUS_FILTERS
4243

4344

@@ -162,7 +163,7 @@ def _latest_task_status(request, course_key_string, view_func=None):
162163

163164
def _create_dto(json_content, request_user):
164165
"""
165-
Returns a DTO for frontend given a list of broken links.
166+
Returns a Data Transfer Object for frontend given a list of broken links.
166167
167168
json_content contains a list of the following:
168169
[block_id, link]
@@ -190,12 +191,12 @@ def _create_dto(json_content, request_user):
190191
block_id, link = item
191192
usage_key = usage_key_with_run(block_id)
192193
block = get_xblock(usage_key, request_user)
193-
_add_broken_link(result, block, link)
194+
_add_broken_link_description(result, block, link)
194195

195196
return result
196197

197198

198-
def _add_broken_link(result, block, link):
199+
def _add_broken_link_description(result, block, link):
199200
"""
200201
Adds broken link found in the specified block along with other block data.
201202
Note that because the celery queue does not have credentials, some broken links will

0 commit comments

Comments
 (0)