mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-12 04:13:06 +00:00
fix q on nft controller (#1032)
This commit is contained in:
committed by
GitHub
parent
60b39ca05f
commit
dd41ef66b9
@@ -6,9 +6,6 @@ from gamestonk_terminal import feature_flags as gtff
|
||||
from gamestonk_terminal.menu import session
|
||||
from gamestonk_terminal.helper_funcs import (
|
||||
EXPORT_ONLY_RAW_DATA_ALLOWED,
|
||||
MENU_GO_BACK,
|
||||
MENU_QUIT,
|
||||
MENU_RESET,
|
||||
try_except,
|
||||
system_clear,
|
||||
get_flair,
|
||||
@@ -28,7 +25,6 @@ class NFTController:
|
||||
"help",
|
||||
"q",
|
||||
"quit",
|
||||
"reset",
|
||||
]
|
||||
|
||||
CHOICES_COMMANDS = [
|
||||
@@ -60,7 +56,6 @@ What do you want to do?
|
||||
?/help show this menu again
|
||||
q quit this menu, and shows back to main menu
|
||||
quit quit to abandon the program
|
||||
reset reset terminal and reload configs
|
||||
|
||||
nftcalendar.io:
|
||||
today today's NFT drops
|
||||
@@ -73,12 +68,17 @@ nftcalendar.io:
|
||||
def switch(self, an_input: str):
|
||||
"""Process and dispatch input
|
||||
|
||||
Parameters
|
||||
-------
|
||||
an_input : str
|
||||
string with input arguments
|
||||
|
||||
Returns
|
||||
-------
|
||||
MENU_GO_BACK, MENU_QUIT, MENU_RESET
|
||||
MENU_GO_BACK - Show main context menu again
|
||||
MENU_QUIT - Quit terminal
|
||||
MENU_RESET - Reset terminal and go back to same previous menu
|
||||
True, False or None
|
||||
False - quit the menu
|
||||
True - quit the program
|
||||
None - continue in the menu
|
||||
"""
|
||||
|
||||
# Empty command
|
||||
@@ -108,15 +108,11 @@ nftcalendar.io:
|
||||
|
||||
def call_q(self, _):
|
||||
"""Process Q command - quit the menu"""
|
||||
return MENU_GO_BACK
|
||||
return False
|
||||
|
||||
def call_quit(self, _):
|
||||
"""Process Quit command - exit the program"""
|
||||
return MENU_QUIT
|
||||
|
||||
def call_reset(self, _):
|
||||
"""Process Reset command - reset the program"""
|
||||
return MENU_RESET
|
||||
"""Process Quit command - quit the program"""
|
||||
return True
|
||||
|
||||
@try_except
|
||||
def call_today(self, other_args: List[str]):
|
||||
|
||||
Reference in New Issue
Block a user