From bd6ce194e89d84e43c03f490fdf266f7e39f761e Mon Sep 17 00:00:00 2001 From: Sindre <89652880+sdalv1k@users.noreply.github.com> Date: Thu, 9 Apr 2026 01:52:13 +0200 Subject: [PATCH 1/2] Fix return value for sync verification --- ctfcli/cli/challenges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctfcli/cli/challenges.py b/ctfcli/cli/challenges.py index 6b26b63..07e7f94 100644 --- a/ctfcli/cli/challenges.py +++ b/ctfcli/cli/challenges.py @@ -1050,7 +1050,7 @@ def verify(self, challenge: str | None = None, ignore: tuple[str] = ()) -> int: if len(challenges_out_of_sync) > 1: return 2 - return 1 + return 0 click.secho("Verification failed for:", fg="red") for challenge_instance in failed_verifications: From 020e173bbc194994464aabfbf8ee599250055901 Mon Sep 17 00:00:00 2001 From: Kevin Chung Date: Wed, 8 Apr 2026 21:20:39 -0400 Subject: [PATCH 2/2] Check for failed challenge verification count properly --- ctfcli/cli/challenges.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ctfcli/cli/challenges.py b/ctfcli/cli/challenges.py index 07e7f94..e2333e6 100644 --- a/ctfcli/cli/challenges.py +++ b/ctfcli/cli/challenges.py @@ -1047,7 +1047,7 @@ def verify(self, challenge: str | None = None, ignore: tuple[str] = ()) -> int: for challenge_instance in challenges_out_of_sync: click.echo(f" - {challenge_instance}") - if len(challenges_out_of_sync) > 1: + if len(challenges_out_of_sync) >= 1: return 2 return 0