Update terminal.py

This commit is contained in:
buzzCraft
2021-03-15 19:24:37 +01:00
parent b39706d873
commit f2f2e15d90

View File

@@ -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":