change register link

This commit is contained in:
Diogo Sousa
2023-02-09 17:02:41 +00:00
parent a8e2d2d005
commit df10cb2cbe
3 changed files with 5 additions and 3 deletions

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

@@ -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]