Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xblock-drag-and-drop-v2
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
OpenEdx
xblock-drag-and-drop-v2
Commits
dd779933
Commit
dd779933
authored
Dec 07, 2017
by
Awais Jibran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Making the code more robust to handle an edge case
Do not break when a dict does not contain an key. EDUCATOR-1832
parent
66fc6d9b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
drag_and_drop_v2/drag_and_drop_v2.py
+1
-1
No files found.
drag_and_drop_v2/drag_and_drop_v2.py
View file @
dd779933
...
@@ -718,7 +718,7 @@ class DragAndDropBlock(
...
@@ -718,7 +718,7 @@ class DragAndDropBlock(
item
=
self
.
_get_item_definition
(
item_attempt
[
'val'
])
item
=
self
.
_get_item_definition
(
item_attempt
[
'val'
])
is_correct
=
self
.
_is_attempt_correct
(
item_attempt
)
is_correct
=
self
.
_is_attempt_correct
(
item_attempt
)
if
item_attempt
[
'zone'
]
is
None
:
if
item_attempt
[
'zone'
]
is
None
:
del
self
.
item_state
[
str
(
item
[
'id'
])]
self
.
item_state
.
pop
(
str
(
item
[
'id'
]),
None
)
self
.
_publish_item_to_bank_event
(
item
[
'id'
],
is_correct
)
self
.
_publish_item_to_bank_event
(
item
[
'id'
],
is_correct
)
else
:
else
:
# State is always updated in assessment mode to store intermediate item positions
# State is always updated in assessment mode to store intermediate item positions
...
...
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