diff --git a/Dockerfile b/Dockerfile index 8922bb7..c82c87f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,6 +7,4 @@ RUN pip install --no-cache-dir -r requirements.txt RUN playwright install chromium RUN playwright install-deps chromium -COPY ./app /usr/src/app/app - -CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "80"] +COPY ./app /app/app diff --git a/app/services/season_stats.py b/app/services/season_stats.py index 2b9c73a..c37deae 100644 --- a/app/services/season_stats.py +++ b/app/services/season_stats.py @@ -159,6 +159,10 @@ def _build_pitching_groups(plays): for play in plays: pitcher_id = play.pitcher_id pitcher_team_id = play.pitcher_team_id + + if pitcher_id is None: + continue + key = (pitcher_id, pitcher_team_id) g = groups[key]