mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-28 04:52:07 +00:00
Thoughs of the day under feature flag
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
from distutils.util import strtobool
|
||||
import os
|
||||
|
||||
# Use coloring features
|
||||
USE_COLOR = strtobool(os.getenv("GTFF_USE_COLOR", "True"))
|
||||
|
||||
# Select console flair (choose from config_terminal.py list)
|
||||
USE_FLAIR = os.getenv("GTFF_USE_FLAIR") or "stars"
|
||||
|
||||
# Enable interactive matplotlib mode
|
||||
USE_ION = strtobool(os.getenv("GTFF_USE_ION", "True"))
|
||||
|
||||
# Enable Prompt Toolkit
|
||||
USE_PROMPT_TOOLKIT = strtobool(os.getenv("GTFF_USE_PROMPT_TOOLKIT", "False"))
|
||||
|
||||
# Enable Prediction features
|
||||
@@ -11,3 +18,6 @@ ENABLE_PREDICT = strtobool(os.getenv("GTFF_ENABLE_PREDICT", "False"))
|
||||
|
||||
# Enable plot autoscaling
|
||||
USE_PLOT_AUTOSCALING = strtobool(os.getenv("GTFF_USE_PLOT_AUTOSCALING", "False"))
|
||||
|
||||
# Enable thoughts of the day
|
||||
ENABLE_THOUGHTS_DAY = strtobool(os.getenv("GTFF_ENABLE_THOUGHTS_DAY", "False"))
|
||||
|
||||
20
terminal.py
20
terminal.py
@@ -22,7 +22,7 @@ from gamestonk_terminal.menu import session
|
||||
from gamestonk_terminal.papermill import papermill_controller as mill
|
||||
from gamestonk_terminal.behavioural_analysis import ba_controller
|
||||
from gamestonk_terminal.technical_analysis import ta_menu as tam
|
||||
from gamestonk_terminal.comparison_analysis import ca_menu as cam
|
||||
from gamestonk_terminal.comparison_analysis import ca_controller
|
||||
from gamestonk_terminal.options import op_menu as opm
|
||||
from gamestonk_terminal.fred import fred_menu as fm
|
||||
from gamestonk_terminal.portfolio import port_menu
|
||||
@@ -86,12 +86,13 @@ def main():
|
||||
print("\nWelcome to Gamestonk Terminal 🚀\n")
|
||||
should_print_help = True
|
||||
|
||||
print("-------------------")
|
||||
try:
|
||||
thought.get_thought_of_the_day()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print("")
|
||||
if gtff.ENABLE_THOUGHTS_DAY:
|
||||
print("-------------------")
|
||||
try:
|
||||
thought.get_thought_of_the_day()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print("")
|
||||
|
||||
# Loop forever and ever
|
||||
while True:
|
||||
@@ -148,7 +149,8 @@ def main():
|
||||
|
||||
else:
|
||||
print(
|
||||
"No ticker selected. Use 'load ticker' to load the ticker you want to look at."
|
||||
"No ticker selected. Use 'load ticker' to load the ticker you want to look at.",
|
||||
"\n",
|
||||
)
|
||||
|
||||
main_cmd = True
|
||||
@@ -181,7 +183,7 @@ def main():
|
||||
b_quit = rm.res_menu(s_ticker, s_start, s_interval)
|
||||
|
||||
elif ns_known_args.opt == "ca":
|
||||
b_quit = cam.ca_menu(df_stock, s_ticker, s_start, s_interval)
|
||||
b_quit = ca_controller.menu(df_stock, s_ticker, s_start, s_interval)
|
||||
|
||||
elif ns_known_args.opt == "fa":
|
||||
b_quit = fam.fa_menu(s_ticker, s_start, s_interval)
|
||||
|
||||
Reference in New Issue
Block a user