We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61c03f0 commit 997e228Copy full SHA for 997e228
ctfcli/core/challenge.py
@@ -398,12 +398,14 @@ def _create_hints(self):
398
if type(hint) == str:
399
hint_payload = {
400
"content": hint,
401
+ "title": "",
402
"cost": 0,
403
"challenge_id": self.challenge_id,
404
}
405
else:
406
407
"content": hint["content"],
408
+ "title": hint.get("title", ""),
409
"cost": hint["cost"],
410
411
ctfcli/spec/challenge-example.yml
@@ -107,6 +107,9 @@ hints:
107
cost: 10
108
109
- This hint is free
110
+ - title: Titled Hint
111
+ content: This hint has a title and costs points
112
+ cost: 10
113
114
# Requirements are used to make a challenge require another challenge to be
115
# solved before being available.
0 commit comments