Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-analytics-data-api
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-analytics-data-api
Commits
ef49c600
Commit
ef49c600
authored
Dec 12, 2014
by
Dennis Jen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added problem_display_name and question_text fields to answer distribution.
parent
f9451efa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
10 deletions
+14
-10
analytics_data_api/v0/models.py
+12
-10
analytics_data_api/v0/serializers.py
+2
-0
No files found.
analytics_data_api/v0/models.py
View file @
ef49c600
...
...
@@ -99,16 +99,18 @@ class ProblemResponseAnswerDistribution(models.Model):
class
Meta
(
object
):
db_table
=
'answer_distribution'
course_id
=
models
.
CharField
(
db_index
=
True
,
max_length
=
255
,
db_column
=
'course_id'
)
module_id
=
models
.
CharField
(
db_index
=
True
,
max_length
=
255
,
db_column
=
'module_id'
)
part_id
=
models
.
CharField
(
db_index
=
True
,
max_length
=
255
,
db_column
=
'part_id'
)
correct
=
models
.
NullBooleanField
(
db_column
=
'correct'
)
count
=
models
.
IntegerField
(
db_column
=
'count'
)
value_id
=
models
.
CharField
(
db_index
=
True
,
max_length
=
255
,
db_column
=
'value_id'
,
null
=
True
)
answer_value_text
=
models
.
TextField
(
db_column
=
'answer_value_text'
,
null
=
True
)
answer_value_numeric
=
models
.
FloatField
(
db_column
=
'answer_value_numeric'
,
null
=
True
)
variant
=
models
.
IntegerField
(
db_column
=
'variant'
,
null
=
True
)
created
=
models
.
DateTimeField
(
auto_now_add
=
True
,
db_column
=
'created'
)
course_id
=
models
.
CharField
(
db_index
=
True
,
max_length
=
255
)
module_id
=
models
.
CharField
(
db_index
=
True
,
max_length
=
255
)
part_id
=
models
.
CharField
(
db_index
=
True
,
max_length
=
255
)
correct
=
models
.
NullBooleanField
()
count
=
models
.
IntegerField
()
value_id
=
models
.
CharField
(
db_index
=
True
,
max_length
=
255
,
null
=
True
)
answer_value_text
=
models
.
TextField
(
null
=
True
)
answer_value_numeric
=
models
.
FloatField
(
null
=
True
)
variant
=
models
.
IntegerField
(
null
=
True
)
problem_display_name
=
models
.
TextField
(
null
=
True
)
question_text
=
models
.
TextField
(
null
=
True
)
created
=
models
.
DateTimeField
(
auto_now_add
=
True
)
class
CourseEnrollmentByCountry
(
BaseCourseEnrollment
):
...
...
analytics_data_api/v0/serializers.py
View file @
ef49c600
...
...
@@ -56,6 +56,8 @@ class ProblemResponseAnswerDistributionSerializer(ModelSerializerWithCreatedFiel
'value_id'
,
'answer_value_text'
,
'answer_value_numeric'
,
'problem_display_name'
,
'question_text'
,
'variant'
,
'created'
)
...
...
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