Skip to content

Commit c52c979

Browse files
authored
Merge pull request #111 from statisticsnorway/promts
Promts
2 parents 741de53 + a16359f commit c52c979

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "ssb-konjunk"
3-
version = "2.0.2"
3+
version = "2.0.3"
44
description = "SSB Konjunk 422"
55
authors = ["Johanne Saxegaard <jox@ssb.no>, Halvor Steffenssen <hvr@ssb.no>"]
66
license = "MIT"

src/ssb_konjunk/prompts.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,12 @@ def input_year() -> int:
4444
if year == now:
4545
return year
4646
else:
47-
print("Er du sikker på at du skal kjøre statistikk for dette året?", year)
48-
if input("y/n") == "y":
47+
print(
48+
"Er du sikker på at du skal kjøre statistikk for dette året? ja/nei",
49+
year,
50+
)
51+
user_input = input().strip().lower()
52+
if user_input in ("j", "ja"):
4953
return year
5054

5155

0 commit comments

Comments
 (0)