From b171083f9e50d0bb94959a44e5d1dc4410690a87 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 28 Mar 2022 23:02:49 -0400 Subject: [PATCH] Missed some .gst refs and update timezone --- openbb_terminal/helper_funcs.py | 10 +++++----- openbb_terminal/timezone.gst | 1 - openbb_terminal/timezone.openbb | 1 + terminal.py | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) delete mode 100644 openbb_terminal/timezone.gst create mode 100644 openbb_terminal/timezone.openbb diff --git a/openbb_terminal/helper_funcs.py b/openbb_terminal/helper_funcs.py index ec6e277cf76..7fb99bf783f 100644 --- a/openbb_terminal/helper_funcs.py +++ b/openbb_terminal/helper_funcs.py @@ -1007,11 +1007,11 @@ def get_user_timezone() -> str: Returns ------- str - user timezone based on timezone.gst file + user timezone based on timezone.openbb file """ filename = os.path.join( os.path.dirname(os.path.abspath(__file__)), - "timezone.gst", + "timezone.openbb", ) if os.path.isfile(filename): with open(filename) as f: @@ -1025,7 +1025,7 @@ def get_user_timezone_or_invalid() -> str: Returns ------- str - user timezone based on timezone.gst file or INVALID + user timezone based on timezone.openbb file or INVALID """ user_tz = get_user_timezone() if is_timezone_valid(user_tz): @@ -1043,7 +1043,7 @@ def replace_user_timezone(user_tz: str) -> None: """ filename = os.path.join( os.path.dirname(os.path.abspath(__file__)), - "timezone.gst", + "timezone.openbb", ) if os.path.isfile(filename): with open(filename, "w") as f: @@ -1055,7 +1055,7 @@ def replace_user_timezone(user_tz: str) -> None: else: console.print("Timezone selected is not valid", "\n") else: - console.print("timezone.gst file does not exist", "\n") + console.print("timezone.openbb file does not exist", "\n") def str_to_bool(value) -> bool: diff --git a/openbb_terminal/timezone.gst b/openbb_terminal/timezone.gst deleted file mode 100644 index 27f725e7757..00000000000 --- a/openbb_terminal/timezone.gst +++ /dev/null @@ -1 +0,0 @@ -America/New_York \ No newline at end of file diff --git a/openbb_terminal/timezone.openbb b/openbb_terminal/timezone.openbb new file mode 100644 index 00000000000..b8d5363be0d --- /dev/null +++ b/openbb_terminal/timezone.openbb @@ -0,0 +1 @@ +US/Eastern \ No newline at end of file diff --git a/terminal.py b/terminal.py index 7b8019698bb..5281a22fb95 100644 --- a/terminal.py +++ b/terminal.py @@ -104,10 +104,10 @@ class TerminalController(BaseController): [info]The previous logic also holds for when launching the terminal.[/info] E.g. '$ python terminal.py /stocks/disc/ugs -n 3/../load tsla/candle' -[info]You can run a standalone .gst routine file with:[/info] +[info]You can run a standalone .openbb routine file with:[/info] E.g. '$ python terminal.py routines/example.openbb' -[info]You can run a .gst routine file with variable inputs:[/info] +[info]You can run a .openbb routine file with variable inputs:[/info] E.g. '$ python terminal.py routines/example_with_inputs.gst --input pltr,tsla,nio' [info]The main commands you should be aware when navigating through the terminal are:[/info][cmds]