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
f1cc6e85
Commit
f1cc6e85
authored
Mar 30, 2013
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix psychoanalyze - make compatible with xblock
parent
24e64e39
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
common/lib/xmodule/xmodule/capa_module.py
+1
-1
lms/djangoapps/psychometrics/psychoanalyze.py
+6
-6
No files found.
common/lib/xmodule/xmodule/capa_module.py
View file @
f1cc6e85
...
...
@@ -755,7 +755,7 @@ class CapaModule(CapaFields, XModule):
self
.
system
.
track_function
(
'save_problem_check'
,
event_info
)
if
hasattr
(
self
.
system
,
'psychometrics_handler'
):
# update PsychometricsData using callback
self
.
system
.
psychometrics_handler
(
self
.
get_
instance_state
())
self
.
system
.
psychometrics_handler
(
self
.
get_
state_for_lcp
())
# render problem into HTML
html
=
self
.
get_problem_html
(
encapsulate
=
False
)
...
...
lms/djangoapps/psychometrics/psychoanalyze.py
View file @
f1cc6e85
...
...
@@ -302,12 +302,12 @@ def make_psychometrics_data_update_handler(course_id, user, module_state_key):
Construct and return a procedure which may be called to update
the PsychometricsData instance for the given StudentModule instance.
"""
sm
=
studentm
odule
.
objects
.
get_or_create
(
course_id
=
course_id
,
student
=
user
,
module_state_key
=
module_state_key
,
defaults
=
{
'state'
:
'{}'
,
'module_type'
:
'problem'
},
)
sm
,
status
=
StudentM
odule
.
objects
.
get_or_create
(
course_id
=
course_id
,
student
=
user
,
module_state_key
=
module_state_key
,
defaults
=
{
'state'
:
'{}'
,
'module_type'
:
'problem'
},
)
try
:
pmd
=
PsychometricData
.
objects
.
using
(
db
)
.
get
(
studentmodule
=
sm
)
...
...
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