Skip to content

Commit

Permalink
Merge pull request #12 from statisticsnorway/fix_fame_to_csv
Browse files Browse the repository at this point in the history
Fix fame to csv
  • Loading branch information
magnushelliesen authored Feb 13, 2024
2 parents 37b4711 + 4e33ecf commit 51b0fd2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "ssb-fame-to-python"
version = "1.0.3"
version = "1.0.4"
description = "SSB Fame To Python"
authors = ["Magnus Kvåle Helliesen <mkh@ssb.no>"]
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion src/fython/fame_to_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ def fame_to_csv(
)

# Make sure extension is .csv and turn into Path object
path_with_extension = Path(f'{path.split(".")[0]}.csv')
path_with_extension = Path(f'{path.replace(".csv", "").replace(".CSV", "")}.csv')

# Write to csv
path_with_extension.write_text(fame_data)
Expand Down

0 comments on commit 51b0fd2

Please sign in to comment.