From f4fbe80d1e1bb74c80e94f2e2527adfa4b2204b7 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Sun, 4 May 2025 17:43:22 -0400 Subject: [PATCH] Allow titled hints to omit a cost --- ctfcli/core/challenge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctfcli/core/challenge.py b/ctfcli/core/challenge.py index 77a9f22..49901ac 100644 --- a/ctfcli/core/challenge.py +++ b/ctfcli/core/challenge.py @@ -406,7 +406,7 @@ def _create_hints(self): hint_payload = { "content": hint["content"], "title": hint.get("title", ""), - "cost": hint["cost"], + "cost": hint.get("cost", 0), "challenge_id": self.challenge_id, }