diff --git a/docs/reference.md b/docs/reference.md index c593b80..8ef2069 100644 --- a/docs/reference.md +++ b/docs/reference.md @@ -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: diff --git a/src/ssb_konjunk/__main__.py b/src/ssb_konjunk/__main__.py index b38afea..f680a52 100644 --- a/src/ssb_konjunk/__main__.py +++ b/src/ssb_konjunk/__main__.py @@ -9,4 +9,4 @@ def main() -> None: if __name__ == "__main__": - main(prog_name="ssb-konjunk") # pragma: no cover \ No newline at end of file + main(prog_name="ssb-konjunk") # pragma: no cover diff --git a/src/ssb_konjunk/prompts.py b/src/ssb_konjunk/prompts.py index 9e03610..249eeb6 100644 --- a/src/ssb_konjunk/prompts.py +++ b/src/ssb_konjunk/prompts.py @@ -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: @@ -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: @@ -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: @@ -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: