From c703f9fffebdd20ef3f0b2f9ff2fcde40069046f Mon Sep 17 00:00:00 2001 From: Dominique DERRIER Date: Tue, 28 Jul 2020 08:29:04 -0400 Subject: [PATCH] Update challenge.py Due to changes regarding api in ctfd --- ctfcli/utils/challenge.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctfcli/utils/challenge.py b/ctfcli/utils/challenge.py index 14df125..b56db4d 100644 --- a/ctfcli/utils/challenge.py +++ b/ctfcli/utils/challenge.py @@ -117,7 +117,7 @@ def sync_challenge(challenge): # Delete existing hints current_hints = s.get(f"/api/v1/hints", json=data).json()["data"] for hint in current_hints: - if hint["challenge_id"] == challenge_id: + if hint["challenge"] == challenge_id: hint_id = hint["id"] r = s.delete(f"/api/v1/hints/{hint_id}", json=True) r.raise_for_status()