From 236d3757933a1ee8fb45779c69c545b964a6f1d8 Mon Sep 17 00:00:00 2001 From: Johanne Saxegaard Date: Thu, 22 Aug 2024 14:59:32 +0200 Subject: [PATCH 1/2] Fixed Noneversion bug --- src/ssb_konjunk/saving.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ssb_konjunk/saving.py b/src/ssb_konjunk/saving.py index d61bcb3..57eec6d 100644 --- a/src/ssb_konjunk/saving.py +++ b/src/ssb_konjunk/saving.py @@ -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( From 38878bc5e8164dea64cce1238516efe437921ee9 Mon Sep 17 00:00:00 2001 From: Johanne Saxegaard Date: Thu, 22 Aug 2024 15:07:43 +0200 Subject: [PATCH 2/2] New release with updated docs --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index b7701ad..2145a7a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "ssb-konjunk" -version = "0.1.6" +version = "0.1.7" description = "SSB Konjunk" authors = ["Edvard Garmannslund "] license = "MIT"