Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Fix lessons data pump to correctly send lesson_id instead of unit_id #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
4 changes: 2 additions & 2 deletions coursebuilder/modules/analytics/rest_providers.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def get_schema(cls, unused_app_context, unused_catch_and_log,
'Lessons',
description='Sets of lessons providing course content')
reg.add_property(schema_fields.SchemaField(
'lesson_id', 'Unit ID', 'string',
'lesson_id', 'Lesson ID', 'string',
description='Key uniquely identifying which lesson this is'))
reg.add_property(schema_fields.SchemaField(
'unit_id', 'Unit ID', 'string',
Expand All @@ -167,7 +167,7 @@ def fetch_values(cls, app_context, *args, **kwargs):
ret = []
for lesson in lessons:
ret.append({
'lesson_id': str(lesson.unit_id),
'lesson_id': str(lesson.lesson_id),
'unit_id': str(lesson.unit_id),
'title': lesson.title,
'scored': lesson.scored,
Expand Down