Skip to content
This repository has been archived by the owner on Sep 26, 2023. It is now read-only.

Commit

Permalink
Do not upload files from private/
Browse files Browse the repository at this point in the history
This should also make it also possible to have a private/ at a challenge's root (not in hacktivity-files/ nor in qpa-files/, probably making life easier)
  • Loading branch information
radl97 committed Sep 18, 2022
1 parent bb6819e commit 867c53f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions utils/challenge_import.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,10 @@ def validate_challenge_structure(challenge_path, log_var):
private = False
config_folder = root
if os.path.basename(root) == "private":
private = True
config_folder = os.path.dirname(root)
#private = True
#config_folder = os.path.dirname(root)
# Do not register private files -- we use version control (see https://github.com/kszk-securiteam/wargame-web/issues/94 )
continue

if os.path.basename(config_folder) == "qpa-files":
conf = "qpa"
Expand Down

0 comments on commit 867c53f

Please sign in to comment.