Skip to content

Commit

Permalink
Merge pull request #46 from statisticsnorway/20240816LeoSmaarydd
Browse files Browse the repository at this point in the history
språklig smårydding
  • Loading branch information
joxssb authored Aug 19, 2024
2 parents cb4603e + 44462f9 commit 28df051
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/ssb_konjunk/_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ def input_valid_int() -> int:
valid_int = int(user_input)
break # Break the loop if a valid integer is entered
except ValueError:
print("Vennligst skriv inn ett gyldig tall som,", 42)
print("Vennligst skriv inn et gyldig tall som f.eks", 42)

return valid_int
2 changes: 1 addition & 1 deletion src/ssb_konjunk/data_formating.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Funsjoner for å gjøre data formartering."""
"""Funsjoner for å gjøre dataformatering."""

import pandas as pd

Expand Down
8 changes: 4 additions & 4 deletions src/ssb_konjunk/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def _input_valid_int() -> int:
valid_int = int(user_input)
break # Break the loop if a valid integer is entered
except ValueError:
print("Vennligst skriv inn ett gyldig tall som,", 42)
print("Vennligst skriv inn et gyldig tall som f.eks.", 42)

return valid_int

Expand All @@ -44,7 +44,7 @@ def input_year() -> int:
if year == now:
return year
else:
print("Er du sikker på at du skal kjøre statistikk for dette året,", year)
print("Er du sikker på at du skal kjøre statistikk for dette året?", year)
if input("y/n") == "y":
return year

Expand Down Expand Up @@ -92,7 +92,7 @@ def input_quarter() -> int:
if 1 <= quarter <= 4:
return quarter
else:
print("Ikke en gyldig kvartal, vennligst skriv inn et tall fra 1 til 4.")
print("Ikke et gyldig kvartal, vennligst skriv inn et tall fra 1 til 4.")


def input_trimester() -> int:
Expand All @@ -107,7 +107,7 @@ def input_trimester() -> int:
if 1 <= trimester <= 3:
return trimester
else:
print("Ikke en gyldig trimester, vennligst skriv inn et tall fra 1 til 3.")
print("Ikke et gyldig trimester, vennligst skriv inn et tall fra 1 til 3.")


def input_week() -> int:
Expand Down

0 comments on commit 28df051

Please sign in to comment.