Skip to content

Commit

Permalink
Merge pull request #55 from statisticsnorway/release_07
Browse files Browse the repository at this point in the history
Release 07
  • Loading branch information
LBiermann-ssb authored Aug 22, 2024
2 parents 1a888ac + 38878bc commit c9143a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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-konjunk"
version = "0.1.6"
version = "0.1.7"
description = "SSB Konjunk"
authors = ["Edvard Garmannslund <[email protected]>"]
license = "MIT"
Expand Down
5 changes: 3 additions & 2 deletions src/ssb_konjunk/saving.py
Original file line number Diff line number Diff line change
Expand Up @@ -323,9 +323,10 @@ def write_ssb_file(
# Find version number/decide whether to overwrite or make new version.
version_number = _find_version_number(files, stable_version)

file_path = f"{file_path}_v{version_number}.{filetype}"
if version_number:
file_path = f"{file_path}_v{version_number}.{filetype}"

_save_df(df, file_path, filetype, fs, seperator, encoding)
_save_df(df, file_path, filetype, fs, seperator, encoding)


def read_ssb_file(
Expand Down

0 comments on commit c9143a8

Please sign in to comment.