File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -398,12 +398,14 @@ def _create_hints(self):
398398 if type (hint ) == str :
399399 hint_payload = {
400400 "content" : hint ,
401+ "title" : "" ,
401402 "cost" : 0 ,
402403 "challenge_id" : self .challenge_id ,
403404 }
404405 else :
405406 hint_payload = {
406407 "content" : hint ["content" ],
408+ "title" : hint .get ("title" , "" ),
407409 "cost" : hint ["cost" ],
408410 "challenge_id" : self .challenge_id ,
409411 }
Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ hints:
107107 cost : 10
108108 }
109109 - This hint is free
110+ - title : Titled Hint
111+ content : This hint has a title and costs points
112+ cost : 10
110113
111114# Requirements are used to make a challenge require another challenge to be
112115# solved before being available.
You can’t perform that action at this time.
0 commit comments