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
0d777a7a
Commit
0d777a7a
authored
Mar 05, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert to passing in current task state again
parent
904ed6c8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
+2
-2
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
+2
-1
No files found.
common/lib/xmodule/xmodule/open_ended_grading_classes/combined_open_ended_modulev1.py
View file @
0d777a7a
...
...
@@ -273,7 +273,7 @@ class CombinedOpenEndedV1Module():
})
self
.
current_task
=
child_task_module
(
self
.
system
,
self
.
location
,
self
.
current_task_parsed_xml
,
self
.
current_task_descriptor
,
self
.
static_data
,
instance_state
=
self
.
instance_state
,
model_data
=
self
.
_model_data
,
task_number
=
self
.
current_task_number
)
instance_state
=
current_task_state
)
self
.
task_states
.
append
(
self
.
current_task
.
get_instance_state
())
self
.
state
=
self
.
ASSESSING
else
:
...
...
@@ -281,7 +281,7 @@ class CombinedOpenEndedV1Module():
current_task_state
=
self
.
overwrite_state
(
current_task_state
)
self
.
current_task
=
child_task_module
(
self
.
system
,
self
.
location
,
self
.
current_task_parsed_xml
,
self
.
current_task_descriptor
,
self
.
static_data
,
instance_state
=
self
.
instance_state
,
model_data
=
self
.
_model_data
,
task_number
=
self
.
current_task_number
)
instance_state
=
current_task_state
)
return
True
...
...
common/lib/xmodule/xmodule/open_ended_grading_classes/openendedchild.py
View file @
0d777a7a
...
...
@@ -102,6 +102,7 @@ class OpenEndedChild(object):
except
:
self
.
child_attempts
=
0
self
.
max_attempts
=
static_data
[
'max_attempts'
]
self
.
child_prompt
=
static_data
[
'prompt'
]
self
.
child_rubric
=
static_data
[
'rubric'
]
self
.
display_name
=
static_data
[
'display_name'
]
...
...
@@ -277,7 +278,7 @@ class OpenEndedChild(object):
return
Progress
(
self
.
get_score
()[
'score'
],
self
.
_max_score
)
except
Exception
as
err
:
#This is a dev_facing_error
log
.
exception
(
"Got bad progress from open ended child module. Max Score: {
1
}"
.
format
(
self
.
_max_score
))
log
.
exception
(
"Got bad progress from open ended child module. Max Score: {
0
}"
.
format
(
self
.
_max_score
))
return
None
return
None
...
...
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