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
6e7dae4f
Commit
6e7dae4f
authored
Jan 04, 2013
by
Vik Paruchuri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Naming bugfixes
parent
7351317c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
common/lib/xmodule/xmodule/open_ended_module.py
+1
-3
common/lib/xmodule/xmodule/self_assessment_module.py
+3
-1
No files found.
common/lib/xmodule/xmodule/open_ended_module.py
View file @
6e7dae4f
...
@@ -105,8 +105,6 @@ class OpenEndedModule():
...
@@ -105,8 +105,6 @@ class OpenEndedModule():
else
:
else
:
instance_state
=
{}
instance_state
=
{}
instance_state
=
self
.
convert_state_to_current_format
(
instance_state
)
# History is a list of tuples of (answer, score, hint), where hint may be
# History is a list of tuples of (answer, score, hint), where hint may be
# None for any element, and score and hint can be None for the last (current)
# None for any element, and score and hint can be None for the last (current)
# element.
# element.
...
@@ -122,7 +120,7 @@ class OpenEndedModule():
...
@@ -122,7 +120,7 @@ class OpenEndedModule():
# completion (doesn't matter if you self-assessed correct/incorrect).
# completion (doesn't matter if you self-assessed correct/incorrect).
self
.
_max_score
=
int
(
instance_state
.
get
(
'max_score'
,
MAX_SCORE
))
self
.
_max_score
=
int
(
instance_state
.
get
(
'max_score'
,
MAX_SCORE
))
oeparam
=
definition
[
'o
penended
param'
]
oeparam
=
definition
[
'o
e
param'
]
prompt
=
definition
[
'prompt'
]
prompt
=
definition
[
'prompt'
]
rubric
=
definition
[
'rubric'
]
rubric
=
definition
[
'rubric'
]
...
...
common/lib/xmodule/xmodule/self_assessment_module.py
View file @
6e7dae4f
...
@@ -99,7 +99,9 @@ class SelfAssessmentModule():
...
@@ -99,7 +99,9 @@ class SelfAssessmentModule():
else
:
else
:
instance_state
=
{}
instance_state
=
{}
# History is a list of tuples of (answer, score, feedback), where hint may be
instance_state
=
self
.
convert_state_to_current_format
(
instance_state
)
# History is a list of tuples of (answer, score, hint), where hint may be
# None for any element, and score and hint can be None for the last (current)
# None for any element, and score and hint can be None for the last (current)
# element.
# element.
# Scores are on scale from 0 to max_score
# Scores are on scale from 0 to max_score
...
...
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