Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
68df7b80
Commit
68df7b80
authored
Jul 31, 2017
by
Calen Pennington
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add course_end to the list of experiment fields put in the DOM
parent
1edd3670
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
lms/djangoapps/experiments/utils.py
+1
-0
lms/templates/user_metadata.html
+7
-2
No files found.
lms/djangoapps/experiments/utils.py
View file @
68df7b80
...
...
@@ -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
,
}
lms/templates/user_metadata.html
View file @
68df7b80
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment