Skip to content

Commit

Permalink
Merge pull request #4184 from OpenBB-finance/hotfix/dev_register
Browse files Browse the repository at this point in the history
Point register to dev
  • Loading branch information
jmaslek authored Feb 9, 2023
2 parents 62b724d + 4b10349 commit 5d47c19
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions openbb_terminal/session/hub_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

from openbb_terminal.rich_config import console

REGISTER_LINK = "https://my.openbb.dev/register"
BASE_URL = "https://payments.openbb.dev/"
TIMEOUT = 15

Expand Down
7 changes: 6 additions & 1 deletion openbb_terminal/session/session_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
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,
Expand All @@ -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]:
Expand Down
3 changes: 2 additions & 1 deletion openbb_terminal/session/user.py
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -59,7 +60,7 @@ def whoami(cls):
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
Expand Down
3 changes: 2 additions & 1 deletion openbb_terminal/terminal_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
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,
Expand Down Expand Up @@ -370,7 +371,7 @@ def call_account(self, _):
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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Original file line number Diff line number Diff line change
@@ -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]

0 comments on commit 5d47c19

Please sign in to comment.