From f2f2e15d9083dfabc55f1be5c35365dd9513f2d4 Mon Sep 17 00:00:00 2001 From: buzzCraft <67235613+buzzCraft@users.noreply.github.com> Date: Mon, 15 Mar 2021 19:24:37 +0100 Subject: [PATCH] Update terminal.py --- terminal.py | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/terminal.py b/terminal.py index d001dad2711..26bfa5b7277 100644 --- a/terminal.py +++ b/terminal.py @@ -122,20 +122,25 @@ def main(): if s_ticker: candle( - s_ticker, (datetime.now() - timedelta(days=180)).strftime("%Y-%m-%d") + s_ticker, + (datetime.now() - timedelta(days=180)).strftime("%Y-%m-%d"), ) - else: - print("No ticker selected. Use 'load ticker' to load the ticker you want to look at.") + else: + print( + "No ticker selected. Use 'load ticker' to load the ticker you want to look at." + ) main_cmd = True elif ns_known_args.opt == "view": if s_ticker: view(l_args, s_ticker, s_start, s_interval, df_stock) - - else: - print("No ticker selected. Use 'load ticker' to load the ticker you want to look at.") + + else: + print( + "No ticker selected. Use 'load ticker' to load the ticker you want to look at." + ) main_cmd = True elif ns_known_args.opt == "export":