Skip to content

Commit

Permalink
Fixed language for venue builder
Browse files Browse the repository at this point in the history
  • Loading branch information
sesquideus committed Nov 12, 2024
1 parent 9e8ef76 commit 00a3f80
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/naboj/builder/venue.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def build_templates(self):
for template in self.language_templates:
path = self.path()
jinja.print_template(
Path(self.launch_directory, path[0], path[1], 'languages', 'sk'), template, self.context.data,
Path(self.launch_directory, path[0], path[1], 'languages', self.context.data['venue']['language']), template, self.context.data,
outdir=self.output_directory,
new_name=Path(template).with_suffix('.tex'),
)
Expand Down
5 changes: 3 additions & 2 deletions modules/naboj/module.mk
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ output/naboj/%: \
output/naboj/%/constants.pdf \
output/naboj/%/cover-print.pdf \
output/naboj/%/booklet.pdf \
output/naboj/%/tearoff.pdf \
output/naboj/%/evaluation.pdf \
output/naboj/%/booklet-print.pdf ;
# output/naboj/$$*/instructions-online.pdf \
Expand Down Expand Up @@ -326,8 +327,6 @@ output/naboj/%/answers-modulo.pdf: \
# All targets for <venue>
# <competition>/<volume>/venues/<venue>
output/naboj/%: \
output/naboj/%/booklet-print.pdf \
output/naboj/%/tearoff.pdf \
output/naboj/%/instructions.pdf \
output/naboj/%/answers-modulo.pdf ;

Expand All @@ -336,6 +335,8 @@ output/naboj/%: \
output/naboj/%/venues: \
$$(foreach dir,$$(subst source/,output/,$$(wildcard source/naboj/$$*/venues/*)),$$(dir)) ;

# Entire volume
# <competition>/<volume>
output/naboj/%/all: \
output/naboj/%/languages \
output/naboj/%/venues ;
Expand Down

0 comments on commit 00a3f80

Please sign in to comment.