diff --git a/gamestonk_terminal/stocks/fundamental_analysis/dcf_model.py b/gamestonk_terminal/stocks/fundamental_analysis/dcf_model.py index a010b5046cc..a58a7f802bf 100644 --- a/gamestonk_terminal/stocks/fundamental_analysis/dcf_model.py +++ b/gamestonk_terminal/stocks/fundamental_analysis/dcf_model.py @@ -220,6 +220,9 @@ def others_in_sector(ticker: str, sector: str, industry: str) -> List[str]: tickers : List[str] List of tickers in the same sector """ + industry = industry.replace("—", " - ") + industry = industry.replace("/", " ") + sister_ticks = list( fd.select_equities(country="United States", sector=sector, industry=industry) ) diff --git a/gamestonk_terminal/stocks/fundamental_analysis/dcf_view.py b/gamestonk_terminal/stocks/fundamental_analysis/dcf_view.py index 6f6098abec1..f632991e4da 100644 --- a/gamestonk_terminal/stocks/fundamental_analysis/dcf_view.py +++ b/gamestonk_terminal/stocks/fundamental_analysis/dcf_view.py @@ -77,8 +77,7 @@ class CreateExcelFA: self.run_audit() trypath = os.path.join( - "..", - "GamestonkTerminal", + os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")), "exports", "excel", f"{self.ticker} {self.now}.xlsx", diff --git a/requirements-full.txt b/requirements-full.txt index c56de7a12be..342ebf0e673 100644 --- a/requirements-full.txt +++ b/requirements-full.txt @@ -224,6 +224,7 @@ termcolor==1.1.0 terminado==0.12.1; python_version >= "3.6" testpath==0.5.0; python_version >= "3.7" textwrap3==0.9.2; python_version >= "3.6" +thepassiveinvestor==1.0.9 threadpoolctl==3.0.0; python_version >= "3.7" timeseries-cv==0.1.4; python_version >= "3.6" and python_version < "4.0" tokenize-rt==4.2.1; python_full_version >= "3.6.1" diff --git a/requirements.txt b/requirements.txt index 8ba359d9535..683ce1f3c30 100644 --- a/requirements.txt +++ b/requirements.txt @@ -201,6 +201,7 @@ termcolor==1.1.0 terminado==0.12.1; python_version >= "3.6" testpath==0.5.0; python_version >= "3.7" textwrap3==0.9.2; python_version >= "3.6" +thepassiveinvestor==1.0.9 threadpoolctl==3.0.0; python_version >= "3.7" timeseries-cv==0.1.4; python_version >= "3.6" and python_version < "4.0" tokenize-rt==4.2.1; python_full_version >= "3.6.1"