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
ff38f5b3
Commit
ff38f5b3
authored
Aug 27, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Debugging correctmap state
parent
b50f9759
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
7 deletions
+4
-7
common/lib/capa/capa/capa_problem.py
+3
-0
common/lib/xmodule/xmodule/capa_module.py
+1
-7
No files found.
common/lib/capa/capa/capa_problem.py
View file @
ff38f5b3
...
...
@@ -14,6 +14,7 @@ This is used by capa_module.
from
__future__
import
division
import
json
import
logging
import
math
import
numpy
...
...
@@ -97,6 +98,8 @@ class LoncapaProblem(object):
if
'student_answers'
in
state
:
self
.
student_answers
=
state
[
'student_answers'
]
if
'correct_map'
in
state
:
print
'THK: LoncapaProblem.__init__'
print
json
.
dumps
(
state
[
'correct_map'
],
indent
=
4
)
self
.
correct_map
.
set_dict
(
state
[
'correct_map'
])
if
'done'
in
state
:
self
.
done
=
state
[
'done'
]
...
...
common/lib/xmodule/xmodule/capa_module.py
View file @
ff38f5b3
...
...
@@ -464,13 +464,7 @@ class CapaModule(XModule):
raise
NotFoundError
(
'Problem must be reset before it can be checked again'
)
# Problem queued. Students must wait XQUEUE_WAITTIME_BETWEEN_REQUESTS
try
:
is_queued
=
self
.
lcp
.
is_queued
()
except
KeyError
:
log
.
info
(
"Caught KeyError arising from 'queuekey'-->'queuestate' conversion for CapaModule name=
%
s"
%
self
.
name
)
is_queued
=
False
if
is_queued
:
if
self
.
lcp
.
is_queued
():
current_time
=
datetime
.
datetime
.
now
()
prev_submit_time
=
self
.
lcp
.
get_recentmost_queuetime
()
waittime_between_requests
=
settings
.
XQUEUE_WAITTIME_BETWEEN_REQUESTS
...
...
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