Add context and fix typos for template generation

master
Lertsenem 2020-07-08 07:53:21 +02:00
parent 7dc1a4f48b
commit 05cb2fa1e9
1 changed files with 9 additions and 2 deletions

View File

@ -175,11 +175,18 @@ def main():
"players" : sorted(
top_players.values(),
key = lambda p: p.placement,
)
),
"imgdir_ssbu_chars": os.path.join(
args.resourcesdir,
"ssbu",
"Super Smash Bros Ultimate",
"Fighter Portraits",
),
}
if args.oufile is None:
if args.outfile is None:
args.outfile = "{}.svg".format(tournament.slug)
jj2_tpl.stream(context).dump( args.outfile )