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):
398
398
if type (hint ) == str :
399
399
hint_payload = {
400
400
"content" : hint ,
401
+ "title" : "" ,
401
402
"cost" : 0 ,
402
403
"challenge_id" : self .challenge_id ,
403
404
}
404
405
else :
405
406
hint_payload = {
406
407
"content" : hint ["content" ],
408
+ "title" : hint .get ("title" , "" ),
407
409
"cost" : hint ["cost" ],
408
410
"challenge_id" : self .challenge_id ,
409
411
}
Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ hints:
107
107
cost : 10
108
108
}
109
109
- This hint is free
110
+ - title : Titled Hint
111
+ content : This hint has a title and costs points
112
+ cost : 10
110
113
111
114
# Requirements are used to make a challenge require another challenge to be
112
115
# solved before being available.
You can’t perform that action at this time.
0 commit comments