Skip to content

Commit b3f13fc

Browse files
zer0x64Res260
authored andcommitted
fix validator bug
1 parent 4bb4f9e commit b3f13fc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ctf/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ def validate(self, track_name: str) -> list[ValidationError]:
182182
errors: list[ValidationError] = []
183183
discourse_posts = parse_post_yamls(track_name=track_name)
184184
for discourse_post in discourse_posts:
185-
if discourse_post.get("trigger", {}).get("type", "") == "flag":
185+
if discourse_post.get("type", "") == "post":
186186
self.discourse_posts.append((track_name, discourse_post))
187187
if not os.path.exists(
188188
os.path.join(

0 commit comments

Comments
 (0)