add -f to load if not present (#2489)

This commit is contained in:
James Maslek
2022-09-04 07:06:29 -04:00
committed by GitHub
parent b9aefb90fa
commit e3a76f40bf
2 changed files with 4 additions and 1 deletions

View File

@@ -322,6 +322,9 @@ class EconometricsController(BaseController):
dest="examples",
)
if other_args and "-e" not in other_args and "-f" not in other_args:
other_args.insert(0, "-f")
ns_parser = self.parse_known_args_and_warn(parser, other_args)
if ns_parser:

View File

@@ -344,7 +344,7 @@
"outputs": [],
"source": [
"df = openbb.stocks.dd.models.business_insider.get_price_target_from_analysts(ticker)\n",
"avg_ratings_last_30_days= 0\n",
"avg_ratings_last_30_days = 0\n",
"if not df.empty:\n",
" avg_ratings_last_30_days = round(\n",
" np.mean(\n",