Read the nationalities file correctly from a custom template pack.

master
Pacman Ghost 5 years ago
parent b1639ebf66
commit cd445915ea
  1. 2
      vasl_templates/webapp/snippets.py

@ -106,7 +106,7 @@ def _do_get_template_pack( dname ):
fname_stem, extn = os.path.splitext( fname )
fname = os.path.join( root, fname )
with open( fname, "r" ) as fp:
if fname.lower() == "nationalities.json":
if (fname_stem, extn) == ("nationalities", ".json"):
nationalities = json.load( fp )
continue
if extn == ".j2":

Loading…
Cancel
Save