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
f8320113
Commit
f8320113
authored
Jun 03, 2014
by
Adam
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3956 from edx/adam/user-id-profile-information
adds user id to student profile information (LMS-2791)
parents
0039536f
a2b2b37e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lms/djangoapps/analytics/basic.py
+1
-1
lms/djangoapps/instructor/views/api.py
+4
-2
No files found.
lms/djangoapps/analytics/basic.py
View file @
f8320113
...
...
@@ -8,7 +8,7 @@ from django.contrib.auth.models import User
import
xmodule.graders
as
xmgraders
STUDENT_FEATURES
=
(
'username'
,
'first_name'
,
'last_name'
,
'is_staff'
,
'email'
)
STUDENT_FEATURES
=
(
'
id'
,
'
username'
,
'first_name'
,
'last_name'
,
'is_staff'
,
'email'
)
PROFILE_FEATURES
=
(
'name'
,
'language'
,
'location'
,
'year_of_birth'
,
'gender'
,
'level_of_education'
,
'mailing_address'
,
'goals'
)
AVAILABLE_FEATURES
=
STUDENT_FEATURES
+
PROFILE_FEATURES
...
...
lms/djangoapps/instructor/views/api.py
View file @
f8320113
...
...
@@ -565,8 +565,9 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=W06
available_features
=
analytics
.
basic
.
AVAILABLE_FEATURES
query_features
=
[
'username'
,
'name'
,
'email'
,
'language'
,
'location'
,
'year_of_birth'
,
'gender'
,
'level_of_education'
,
'mailing_address'
,
'goals'
'id'
,
'username'
,
'name'
,
'email'
,
'language'
,
'location'
,
'year_of_birth'
,
'gender'
,
'level_of_education'
,
'mailing_address'
,
'goals'
,
]
student_data
=
analytics
.
basic
.
enrolled_students_features
(
course_id
,
query_features
)
...
...
@@ -575,6 +576,7 @@ def get_students_features(request, course_id, csv=False): # pylint: disable=W06
# will be displayed in the table generated in data_download.coffee. It is not (yet)
# used as the header row in the CSV, but could be in the future.
query_features_names
=
{
'id'
:
_
(
'User ID'
),
'username'
:
_
(
'Username'
),
'name'
:
_
(
'Name'
),
'email'
:
_
(
'Email'
),
...
...
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