Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
crowdsourcehinter
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
crowdsourcehinter
Commits
e212b8a1
Commit
e212b8a1
authored
Sep 02, 2014
by
Sola
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
comment changes
parent
e32047a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
+2
-1
crowdxblock/crowdxblock.py
+2
-1
No files found.
crowdxblock/crowdxblock.py
View file @
e212b8a1
...
...
@@ -21,7 +21,8 @@ class CrowdXBlock(XBlock):
"""
# Database of hints. hints are stored as such: {"incorrect_answer": {"hint": rating}}. each key (incorrect answer)
# has a corresponding dictionary (in which hints are keys and the hints' ratings are the values).
hint_database
=
Dict
(
default
=
{:
{}},
scope
=
Scope
.
user_state_summary
)
# Temporary values have been added into the hint_database for testing purposes (will be removed in the future)
hint_database
=
Dict
(
default
=
{
'answer'
:
{
'hint'
:
1
}},
scope
=
Scope
.
user_state_summary
)
# This is a dictionary of hints that will be used to determine what hints to show a student.
# flagged hints are not included in this dictionary of hints
HintsToUse
=
Dict
({},
scope
=
Scope
.
user_state
)
...
...
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