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
269468ba
Commit
269468ba
authored
Jul 17, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CorrectMap.is_queued and .is_right_queuekey defaults to False if answer_id not found
parent
0958485b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
common/lib/capa/capa/correctmap.py
+2
-4
No files found.
common/lib/capa/capa/correctmap.py
View file @
269468ba
...
...
@@ -66,12 +66,10 @@ class CorrectMap(object):
return
None
def
is_queued
(
self
,
answer_id
):
if
answer_id
in
self
.
cmap
:
return
self
.
cmap
[
answer_id
][
'queuekey'
]
is
not
None
return
None
return
answer_id
in
self
.
cmap
and
self
.
cmap
[
answer_id
][
'queuekey'
]
is
not
None
def
is_right_queuekey
(
self
,
answer_id
,
test_key
):
if
answer_id
in
self
.
cmap
:
return
self
.
cmap
[
answer_id
][
'queuekey'
]
==
test_key
return
None
return
answer_id
in
self
.
cmap
and
self
.
cmap
[
answer_id
][
'queuekey'
]
==
test_key
def
get_npoints
(
self
,
answer_id
):
if
self
.
is_correct
(
answer_id
):
...
...
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