ssb-konjunk 0.1.12__tar.gz → 0.1.13__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: ssb-konjunk
3
- Version: 0.1.12
3
+ Version: 0.1.13
4
4
  Summary: SSB Konjunk
5
5
  Home-page: https://github.com/statisticsnorway/ssb-konjunk
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ssb-konjunk"
3
- version = "0.1.12"
3
+ version = "0.1.13"
4
4
  description = "SSB Konjunk"
5
5
  authors = ["Edvard Garmannslund <ged@ssb.no>"]
6
6
  license = "MIT"
@@ -87,7 +87,7 @@ def _structure_ssb_filepath(
87
87
 
88
88
  # Handle versionizing or not.
89
89
  if version_number is None:
90
- file_path = f"{file_path}/{file_name}_{time_stamp}"
90
+ file_path = f"{file_path}/{file_name}_{time_stamp}_"
91
91
  elif isinstance(version_number, int):
92
92
  file_path = f"{file_path}/{file_name}_{time_stamp}_v{version_number}.{filetype}"
93
93
  else:
@@ -324,6 +324,8 @@ def write_ssb_file(
324
324
  version_number = _find_version_number(files, stable_version)
325
325
 
326
326
  if version_number:
327
+ if file_path.endswith("_"):
328
+ file_path = file_path[:-1]
327
329
  file_path = f"{file_path}_v{version_number}.{filetype}"
328
330
 
329
331
  _save_df(df, file_path, filetype, fs, seperator, encoding)
File without changes
File without changes