diff --git a/Dockerfile b/Dockerfile index 252f0f1..2ff293a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ RUN curl https://pyenv.run | bash ENV PYENV_ROOT="$HOME/.pyenv" ENV PATH="$PYENV_ROOT/bin:$PYENV_ROOT/shims/:$PATH" ADD .python-version . -RUN CONFIGURE_OPTS=--enable-shared pyenv install +RUN CONFIGURE_OPTS="--enable-shared --fno-semantic-interposition --enable-optimizations --with-lto --with-pgo" pyenv install ADD requirements.txt . RUN pip install -r requirements.txt ADD app.py . diff --git a/app.py b/app.py index eaf5f7c..61d2811 100644 --- a/app.py +++ b/app.py @@ -690,12 +690,12 @@ def backtest_logfile(self, price_log: str) -> None: continue parts = line.split(" ") - date = " ".join(parts[0:2]) symbol = parts[2] - market_price = float(parts[3]) - if symbol not in self.tickers: continue + date = " ".join(parts[0:2]) + market_price = float(parts[3]) + # implements a PAUSE_FOR pause while reading from # our price logs. diff --git a/requirements-dev.txt b/requirements-dev.txt index 2d1a6de..142c4f2 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -24,4 +24,4 @@ tomli==1.2.2 tornado==6.1 typing-extensions==3.10.0.2 urllib3-mock==0.3.3 -types-PyYAML==-6.0.0 +types-PyYAML==6.0.0