Fixes 2 minor issues (#892)

* finviz.analyst export param to be optional

* Fix quit after more than 1 reset occuring
This commit is contained in:
DidierRLopes
2021-11-01 16:39:07 +00:00
committed by GitHub
parent 123517b020
commit 9321e8398a
2 changed files with 2 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ def news(ticker: str, num: int):
print("")
def analyst(ticker: str, export: str):
def analyst(ticker: str, export: str = ""):
"""Display analyst ratings. [Source: Finviz]
Parameters

View File

@@ -278,7 +278,7 @@ def terminal(menu_prior_to_reset=""):
else:
print("\nInvalid DEFAULT_CONTEXT config selected!", "\n")
if process_input != MENU_QUIT:
if process_input not in (MENU_QUIT, MENU_RESET):
t_controller.print_help()
while True: