diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 0d516b7b66b..c6281db9459 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -7,7 +7,7 @@ env: OPENBB_USE_PROMPT_TOOLKIT: false OPENBB_FILE_OVERWRITE: true OPENBB_ENABLE_CHECK_API: false - OPENBB_PREVIOUS_USER: false + OPENBB_PREVIOUS_USER: true PIP_DEFAULT_TIMEOUT: 100 on: diff --git a/openbb_terminal/keys_model.py b/openbb_terminal/keys_model.py index c0f3ef79c7d..570b2b26a5c 100644 --- a/openbb_terminal/keys_model.py +++ b/openbb_terminal/keys_model.py @@ -210,6 +210,12 @@ def first_time_user() -> bool: bool Whether or not the user is a first time user """ + if ( + "OPENBB_PREVIOUS_USE" in os.environ + and os.environ["OPENBB_PREVIOUS_USE"] is True + ): + return False + if USER_ENV_FILE.stat().st_size == 0: set_key("OPENBB_PREVIOUS_USE", "True", True) return True