Commit 68df7b80 by Calen Pennington

Add course_end to the list of experiment fields put in the DOM

parent 1edd3670
......@@ -46,4 +46,5 @@ def get_experiment_user_metadata_context(request, course, user):
'upgrade_deadline': upgrade_data and upgrade_data.date,
'course_key': course.id,
'course_start': course.start,
'course_end': course.end,
}
......@@ -13,7 +13,6 @@ user_metadata = {
'course_id',
'enrollment_mode',
'upgrade_link',
'upgrade_deadline',
'upgrade_price',
'pacing_type',
)
......@@ -23,7 +22,13 @@ if user:
user_metadata['username'] = user.username
user_metadata['user_id'] = user.id
for datekey in ('schedule_start', 'enrollment_time', 'course_start'):
for datekey in (
'schedule_start',
'enrollment_time',
'course_start',
'course_end',
'upgrade_deadline'
):
user_metadata[datekey] = (
context.get(datekey).isoformat() if context.get(datekey) else None
)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment