mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-12 20:31:18 +00:00
Change the if statement for the initial user
This commit is contained in:
2
.github/workflows/unit-test.yml
vendored
2
.github/workflows/unit-test.yml
vendored
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user