Skip to content

Commit

Permalink
Fix #321: Glob subdirectories of data/{sample,secret} as well
Browse files Browse the repository at this point in the history
  • Loading branch information
RagnarGrootKoerkamp committed Oct 31, 2023
1 parent b8fb7be commit 641f11b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions bin/export.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ def build_problem_zip(problem, output, statement_language):
('.timelimit', True),
(f'problem.{statement_language}.pdf', True),
('problem_statement/*', True),
('data/sample/*.in', True),
('data/sample/*.ans', True),
('data/secret/*.in', True),
('data/secret/*.ans', True),
('data/sample/**/*.in', True),
('data/sample/**/*.ans', True),
('data/secret/**/*.in', True),
('data/secret/**/*.ans', True),
('submissions/accepted/**/*', True),
('submissions/*/**/*', False),
('attachments/**/*', False),
Expand All @@ -123,12 +123,12 @@ def build_problem_zip(problem, output, statement_language):
(f'problem.{statement_language}.pdf', True),
('problem_statement/*', True),
# Either .interaction or .in.statement should be present, but we only care about .interaction here.
('data/sample/*.interaction', False),
('data/sample/*.in.statement', False),
('data/sample/*.ans.statement', False),
('data/secret/*.in', True),
('data/sample/**/*.interaction', False),
('data/sample/**/*.in.statement', False),
('data/sample/**/*.ans.statement', False),
('data/secret/**/*.in', True),
# Not really needed, but otherwise problemtools will complain.
('data/secret/*.ans', True),
('data/secret/**/*.ans', True),
('submissions/accepted/**/*', True),
('submissions/*/**/*', False),
('attachments/**/*', False),
Expand Down

0 comments on commit 641f11b

Please sign in to comment.