Skip to content

Commit c5abdd4

Browse files
authored
Allow titled hints to omit a cost (#185)
1 parent 850fcbe commit c5abdd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ctfcli/core/challenge.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,7 @@ def _create_hints(self):
406406
hint_payload = {
407407
"content": hint["content"],
408408
"title": hint.get("title", ""),
409-
"cost": hint["cost"],
409+
"cost": hint.get("cost", 0),
410410
"challenge_id": self.challenge_id,
411411
}
412412

0 commit comments

Comments
 (0)