From 46cb6e159defb5ff418385baf9e672a95f01351e Mon Sep 17 00:00:00 2001 From: Ian Ibbotson Date: Sat, 27 Feb 2016 13:12:37 +0000 Subject: [PATCH] Correct lessons data pump to correctly send lesson_id instead of unit_id for the lesson_id property. Verified working in citizen math deployment and corresponding BigQuery instance --- coursebuilder/modules/analytics/rest_providers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,