diff --git a/coursebuilder/modules/analytics/rest_providers.py b/coursebuilder/modules/analytics/rest_providers.py index 447ca7de..0fa7973c 100644 --- a/coursebuilder/modules/analytics/rest_providers.py +++ b/coursebuilder/modules/analytics/rest_providers.py @@ -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', @@ -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,