This function adds a new hint submitted by the student into the hint_database.
...
...
@@ -375,10 +376,10 @@ class CrowdsourceHinter(XBlock):
@XBlock.json_handler
defstudiodata(self,data,suffix=''):
"""
This function serves to return the dictionary of flagged hints to JS. This is intended for use in
This function serves to return the dictionary of reported hints to JS. This is intended for use in
the studio_view, which is under construction at the moment
"""
returnself.Flagged
returnself.Reported
@staticmethod
defworkbench_scenarios():
...
...
@@ -388,7 +389,7 @@ class CrowdsourceHinter(XBlock):
"""
<verticaldemo>
<crowdsourcehinter>
{"initial_hint_answer": "michigann", "initial_hint_text": "you have an extra n", "generic_hint": "make sure to check your spelling"}
{"generic_hints": "Make sure to check for basic mistakes like typos", "initial_hints": {"michiganp": {"remove the p at the end", 0}, "michigann": {"too many Ns on there": 0}}, "hinting_element": "i4x://edX/DemoX/problem/Text_Input"}