ssb-konjunk 0.1.19__tar.gz → 0.1.21__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.3
2
2
  Name: ssb-konjunk
3
- Version: 0.1.19
3
+ Version: 0.1.21
4
4
  Summary: SSB Konjunk
5
5
  License: MIT
6
6
  Author: Edvard Garmannslund
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "ssb-konjunk"
3
- version = "0.1.19"
3
+ version = "0.1.21"
4
4
  description = "SSB Konjunk"
5
5
  authors = ["Edvard Garmannslund <ged@ssb.no>"]
6
6
  license = "MIT"
@@ -221,9 +221,11 @@ def _verify_datatilstand(datatilstand: str) -> str:
221
221
  "klargjorte-data",
222
222
  "statistikk",
223
223
  "utdata",
224
+ "logg",
225
+ "konfigurasjon",
224
226
  ]:
225
227
  datatilstand = input(
226
- "Datatilstanden må være enten inndata, klargjorte-data, statistikk eller utdata."
228
+ "Datatilstanden må være enten inndata, klargjorte-data, statistikk eller utdata (eller logg, konfigurasjon)."
227
229
  )
228
230
  datatilstand = _verify_datatilstand(datatilstand)
229
231
  return datatilstand
@@ -259,11 +261,11 @@ def _save_df(
259
261
  df.to_csv(file_path, sep=seperator, index=False, encoding=encoding)
260
262
  # Save as jsonl
261
263
  elif filetype == "jsonl":
262
- df.to_json(orient="records", lines=True)
264
+ df.to_json(file_path, orient="records", lines=True)
263
265
 
264
266
  # Save as json
265
267
  elif filetype == "json":
266
- df.to_json(orient="records", lines=False)
268
+ df.to_json(file_path, orient="records", lines=False)
267
269
 
268
270
  # Uknown filetype sent as argument
269
271
  else:
File without changes
File without changes