Add context and fix typos for template generation
parent
7dc1a4f48b
commit
05cb2fa1e9
|
@ -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 )
|
||||
|
|
Loading…
Reference in New Issue