Skip to content

Commit

Permalink
Ny funksjoner dokumentert
Browse files Browse the repository at this point in the history
  • Loading branch information
EdvardGarmannslund committed Feb 13, 2024
1 parent 7509ca2 commit c3798c3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 8 deletions.
13 changes: 10 additions & 3 deletions docs/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,21 @@ delete the .rst file afterwards.

```{eval-rst}
ssb\_konjunk package
=============================================================================
====================
ssb\_konjunk.functions module
-----------------------------------------------------------------------------
-----------------------------
.. automodule:: ssb_konjunk.functions
:members:
:undoc-members:
:show-inheritance:
```
ssb\_konjunk.prompts module
---------------------------
.. automodule:: ssb_konjunk.prompts
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion src/ssb_konjunk/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ def main() -> None:


if __name__ == "__main__":
main(prog_name="ssb-konjunk") # pragma: no cover
main(prog_name="ssb-konjunk") # pragma: no cover
8 changes: 4 additions & 4 deletions src/ssb_konjunk/prompts.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def input_year() -> int:
# Get the desired year from the user
print("Skriv inn år i format YYYY som", 2024)
while True:
year = input_valid_int()
year = _input_valid_int()
if 2000 <= year <= 2030:
return year
else:
Expand All @@ -128,7 +128,7 @@ def input_month() -> int:
# Get the desired month from the user
print("Skriv inn måned i format m, som:", 8)
while True:
month = input_valid_int()
month = _input_valid_int()
if 1 <= month <= 12:
return month
else:
Expand All @@ -144,7 +144,7 @@ def input_term() -> int:
"""
print("Skriv inn termin i format t, som:", 3)
while True:
term = input_valid_int()
term = _input_valid_int()
if 1 <= term <= 6:
return term
else:
Expand All @@ -160,7 +160,7 @@ def input_quarter() -> int:
"""
print("Skriv inn kvartal i format q, som:", 2)
while True:
quarter = input_valid_int()
quarter = _input_valid_int()
if 1 <= quarter <= 4:
return quarter
else:
Expand Down

0 comments on commit c3798c3

Please sign in to comment.