Skip to content

Commit 4d47e5e

Browse files
sdalv1kColdHeat
andauthored
Fix return value for sync verification (#204)
* Fix return value for sync verification * Check for failed challenge verification count properly --------- Co-authored-by: Kevin Chung <kchung@ctfd.io>
1 parent 329085e commit 4d47e5e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ctfcli/cli/challenges.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,10 +1047,10 @@ def verify(self, challenge: str | None = None, ignore: tuple[str] = ()) -> int:
10471047
for challenge_instance in challenges_out_of_sync:
10481048
click.echo(f" - {challenge_instance}")
10491049

1050-
if len(challenges_out_of_sync) > 1:
1050+
if len(challenges_out_of_sync) >= 1:
10511051
return 2
10521052

1053-
return 1
1053+
return 0
10541054

10551055
click.secho("Verification failed for:", fg="red")
10561056
for challenge_instance in failed_verifications:

0 commit comments

Comments
 (0)