diff --git a/src/pybroker/data.py b/src/pybroker/data.py index 8ae462c..9027ba8 100644 --- a/src/pybroker/data.py +++ b/src/pybroker/data.py @@ -505,14 +505,15 @@ def _fetch_data( _adjust: Optional[str], ) -> pd.DataFrame: """:meta private:""" - yf_progress_bar_flag = not ( - self._logger._disabled or self._logger.progress_bar_disabled + show_yf_progress_bar = ( + not self._logger._disabled + and not self._logger._progress_bar_disabled ) df = yfinance.download( list(symbols), start=start_date, end=end_date, - progress=yf_progress_bar_flag, + progress=show_yf_progress_bar, ) if df.columns.empty: return pd.DataFrame( diff --git a/src/pybroker/log.py b/src/pybroker/log.py index 0f502ec..92390f7 100644 --- a/src/pybroker/log.py +++ b/src/pybroker/log.py @@ -57,11 +57,6 @@ def _update_progress_bar(self, count: int): self._progress_bar = None self._out("") - @property - def progress_bar_disabled(self): - """Disables Progress Bar flag""" - return self._progress_bar_disabled - def disable(self): """Disables logging.""" self._disabled = True