Skip to content

Commit

Permalink
Addition of basename to output from list_templates.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Feb 13, 2024
1 parent 0ef4c62 commit 070e2d3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion csv2bufr/templates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,8 @@ def index_templates() -> bool:
"author": tmpl['metadata'].get("author", ""),
"dateCreated": tmpl['metadata'].get("dateCreated", ""), # noqa
"id": tmpl['metadata'].get("id", ""),
"path": fname
"path": fname,
"basename": Path(fname).name.replace(".json","") # noqa
}

except Exception as e:
Expand Down

0 comments on commit 070e2d3

Please sign in to comment.