update clear prompt

This commit is contained in:
Diogo Sousa
2023-01-27 15:56:31 +00:00
parent 42a322a32f
commit 9ae5b9d589
2 changed files with 8 additions and 8 deletions

View File

@@ -150,8 +150,8 @@ class AccountController(BaseController):
ns_parser = self.parse_simple_args(parser, _)
if ns_parser:
i = console.input(
"[red]This action is irreversible!\n"
"Are you sure you want to permanently delete your data? (y/n): [/red]"
"[red]This action is irreversible![/red]\n"
"> Are you sure you want to permanently delete your data? (y/n): "
)
if i.lower() in ["y", "yes"]:
console.print("")

View File

@@ -360,12 +360,12 @@ class TerminalController(BaseController):
"""Process account command."""
from openbb_terminal.account.account_controller import AccountController
# 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"
# )
# return
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"
)
return
self.queue = self.load_class(AccountController, self.queue)
def call_keys(self, _):