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
7749bbbe
Commit
7749bbbe
authored
Oct 07, 2013
by
Carlos Andrés Rocha
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add module grade to problem_check tracking log event
parent
c484dc6c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletions
+9
-1
common/lib/xmodule/xmodule/capa_module.py
+5
-1
docs/data/source/internal_data_formats/tracking_logs.rst
+4
-0
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
7749bbbe
...
@@ -884,6 +884,8 @@ class CapaModule(CapaFields, XModule):
...
@@ -884,6 +884,8 @@ class CapaModule(CapaFields, XModule):
'max_value'
:
score
[
'total'
],
'max_value'
:
score
[
'total'
],
})
})
return
{
'grade'
:
score
[
'score'
],
'max_grade'
:
score
[
'total'
]}
def
check_problem
(
self
,
data
):
def
check_problem
(
self
,
data
):
"""
"""
Checks whether answers to a problem are correct
Checks whether answers to a problem are correct
...
@@ -951,7 +953,7 @@ class CapaModule(CapaFields, XModule):
...
@@ -951,7 +953,7 @@ class CapaModule(CapaFields, XModule):
return
{
'success'
:
msg
}
return
{
'success'
:
msg
}
raise
raise
self
.
publish_grade
()
published_grade
=
self
.
publish_grade
()
# success = correct if ALL questions in this problem are correct
# success = correct if ALL questions in this problem are correct
success
=
'correct'
success
=
'correct'
...
@@ -961,6 +963,8 @@ class CapaModule(CapaFields, XModule):
...
@@ -961,6 +963,8 @@ class CapaModule(CapaFields, XModule):
# NOTE: We are logging both full grading and queued-grading submissions. In the latter,
# NOTE: We are logging both full grading and queued-grading submissions. In the latter,
# 'success' will always be incorrect
# 'success' will always be incorrect
event_info
[
'grade'
]
=
published_grade
[
'grade'
]
event_info
[
'max_grade'
]
=
published_grade
[
'max_grade'
]
event_info
[
'correct_map'
]
=
correct_map
.
get_dict
()
event_info
[
'correct_map'
]
=
correct_map
.
get_dict
()
event_info
[
'success'
]
=
success
event_info
[
'success'
]
=
success
event_info
[
'attempts'
]
=
self
.
attempts
event_info
[
'attempts'
]
=
self
.
attempts
...
...
docs/data/source/internal_data_formats/tracking_logs.rst
View file @
7749bbbe
...
@@ -162,6 +162,10 @@ The Student Event Type table lists the event types logged for interaction with t
...
@@ -162,6 +162,10 @@ The Student Event Type table lists the event types logged for interaction with t
| | | | +---------------------+---------------+---------------------------------------------------------------------+
| | | | +---------------------+---------------+---------------------------------------------------------------------+
| | | | | ``attempts`` | integer | |
| | | | | ``attempts`` | integer | |
| | | | +---------------------+---------------+---------------------------------------------------------------------+
| | | | +---------------------+---------------+---------------------------------------------------------------------+
| | | | | ``grade`` | integer | Current grade value |
| | | | +---------------------+---------------+---------------------------------------------------------------------+
| | | | | ``max_grade`` | integer | Maximum possible grade value |
| | | | +---------------------+---------------+---------------------------------------------------------------------+
| | | | | ``correct_map`` | string / JSON | **See the table in** |
| | | | | ``correct_map`` | string / JSON | **See the table in** |
| | | | | | | **Addendum:** ``correct_map`` **Fields and Values below** |
| | | | | | | **Addendum:** ``correct_map`` **Fields and Values below** |
+-----------------------------------+-------------------------------+---------------------+-----------------+---------------------+---------------+---------------------------------------------------------------------+
+-----------------------------------+-------------------------------+---------------------+-----------------+---------------------+---------------+---------------------------------------------------------------------+
...
...
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