Merge pull request #4184 from OpenBB-finance/hotfix/dev_register

Point register to dev
This commit is contained in:
James Maslek
2023-02-09 14:27:15 -05:00
committed by GitHub
6 changed files with 16 additions and 5 deletions

View File

@@ -4,6 +4,7 @@ import requests
from openbb_terminal.rich_config import console
REGISTER_LINK = "https://my.openbb.dev/register"
BASE_URL = "https://payments.openbb.dev/"
TIMEOUT = 15

View File

@@ -6,6 +6,7 @@ import openbb_terminal.session.local_model as Local
from openbb_terminal import terminal_controller
from openbb_terminal.core.config.paths import PACKAGE_DIRECTORY
from openbb_terminal.rich_config import console
from openbb_terminal.session.hub_model import REGISTER_LINK
from openbb_terminal.session.session_model import (
LoginStatus,
create_session,
@@ -17,8 +18,12 @@ def display_welcome_message():
"""Display welcome message"""
with open(PACKAGE_DIRECTORY / "session" / "banner.txt") as f:
console.print(f"[menu]{f.read()}[/menu]\n")
console.print("Register : [cmds]https://my.openbb.co/register[/cmds]")
console.print(f"Register : [cmds]{REGISTER_LINK}[/cmds]")
console.print("Ask support : [cmds]https://openbb.co/support[/cmds]")
console.print(
"[yellow]\nWARNING: This is a pre-release version published for testing.[/yellow]"
"[yellow]\nBeware that your account will be deleted without notice.[/yellow]"
)
def get_user_input() -> Tuple[str, str, bool]:

View File

@@ -1,5 +1,6 @@
import openbb_terminal.feature_flags as obbff
from openbb_terminal.rich_config import console
from openbb_terminal.session.hub_model import REGISTER_LINK
class User:
@@ -59,7 +60,7 @@ class User:
else:
console.print(
"[info]You are currently logged as a guest.\n"
"Create an account here https://my.openbb.co/register.[/info]"
f"Create an account here {REGISTER_LINK}.[/info]"
)
@classmethod

View File

@@ -48,6 +48,7 @@ from openbb_terminal.parent_classes import BaseController
from openbb_terminal.reports.reports_model import ipykernel_launcher
from openbb_terminal.rich_config import MenuText, console
from openbb_terminal.session import session_controller
from openbb_terminal.session.hub_model import REGISTER_LINK
from openbb_terminal.session.user import User
from openbb_terminal.terminal_helper import (
bootup,
@@ -370,7 +371,7 @@ class TerminalController(BaseController):
if User.is_guest():
console.print(
"[info]You need to be logged in to use this menu.\n"
"Create an account here https://my.openbb.co/register.[/info]\n"
f"Create an account here {REGISTER_LINK}.[/info]\n"
)
return
self.queue = self.load_class(AccountController, self.queue)

View File

@@ -18,5 +18,8 @@
Investment research for Everyone, Anywhere.
[/menu]
Register : [cmds]https://my.openbb.co/register[/cmds]
Register : [cmds]https://my.openbb.dev/register[/cmds]
Ask support : [cmds]https://openbb.co/support[/cmds]
[yellow]
WARNING: This is a pre-release version published for testing.[/yellow][yellow]
Beware that your account will be deleted without notice.[/yellow]

View File

@@ -1,2 +1,2 @@
[info]You are currently logged as a guest.
Create an account here https://my.openbb.co/register.[/info]
Create an account here https://my.openbb.dev/register.[/info]