Update ctftool
parent
2e097db843
commit
20a27a874f
4
ctftool
4
ctftool
|
@ -125,11 +125,11 @@ def scan_challenges(args):
|
|||
|
||||
os.makedirs(config.static_dir, exist_ok=True)
|
||||
for root, dirs, files in os.walk(path):
|
||||
if "stage.yml" in files:
|
||||
scan_challenges_stage(root, files)
|
||||
if "problem.yml" in files:
|
||||
n += 1
|
||||
scan_challenges_problem(root, files)
|
||||
if "stage.yml" in files:
|
||||
scan_challenges_stage(root, files)
|
||||
|
||||
print(n, "challenges loaded")
|
||||
|
||||
|
|
Loading…
Reference in New Issue