Skip to content

Commit

Permalink
use .stem.
Browse files Browse the repository at this point in the history
  • Loading branch information
david-i-berry committed Feb 14, 2024
1 parent 0cfa0b0 commit 4b12ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csv2bufr/templates/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def index_templates() -> bool:
"dateCreated": tmpl['metadata'].get("dateCreated", ""), # noqa
"id": tmpl['metadata'].get("id", ""),
"path": fname,
"name": Path(fname).name.replace(".json", "") # noqa
"name": Path(fname).stem
}

except Exception as e:
Expand Down

0 comments on commit 4b12ca3

Please sign in to comment.