From ac95b787bdd4b57f4506ffa637db3cef37bcd697 Mon Sep 17 00:00:00 2001 From: Maarten Sijm <9739541+mpsijm@users.noreply.github.com> Date: Fri, 25 Nov 2022 09:25:23 +0100 Subject: [PATCH] [export] Add problem-slides.pdf to zip --- bin/export.py | 1 + bin/tools.py | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/bin/export.py b/bin/export.py index ef9e0d12..61449c29 100644 --- a/bin/export.py +++ b/bin/export.py @@ -214,6 +214,7 @@ def build_contest_zip(problems, zipfiles, outfile, statement_language): [ 'problems.yaml', 'contest.yaml', + 'problem-slides.pdf', 'samples.zip', ] + glob(Path('.'), f'contest*.{statement_language}.pdf') diff --git a/bin/tools.py b/bin/tools.py index c17d06c1..5525e2c5 100755 --- a/bin/tools.py +++ b/bin/tools.py @@ -1022,11 +1022,14 @@ def run_parsed_arguments(args): contest, problems, tmpdir, statement_language, web=True ) if not config.args.no_solutions: - success &= latex.build_contest_pdfs( - contest, problems, tmpdir, statement_language, solutions=True + success &= latex.build_contest_pdf( + contest, problems, tmpdir, statement_language, build_type=latex.TYPE_PROBLEM_SLIDE ) - success &= latex.build_contest_pdfs( - contest, problems, tmpdir, statement_language, solutions=True, web=True + success &= latex.build_contest_pdf( + contest, problems, tmpdir, statement_language, build_type=latex.TYPE_SOLUTION + ) + success &= latex.build_contest_pdf( + contest, problems, tmpdir, statement_language, build_type=latex.TYPE_SOLUTION, web=True ) outfile = contest + '.zip'