3 Commits
dev ... v2

4 changed files with 11 additions and 3 deletions

View File

@@ -12,6 +12,8 @@ ARG BUILD_ENVIRONMENT=local
RUN apt-get update && apt-get install --no-install-recommends -y \
# dependencies for building Python packages
build-essential \
# git
git \
# psycopg2 dependencies
libpq-dev
@@ -41,6 +43,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
libpq-dev \
# Translations dependencies
gettext \
# git for submodules
git \
# cleaning up unused files
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*

View File

@@ -14,6 +14,8 @@ ARG BUILD_ENVIRONMENT=production
RUN apt-get update && apt-get install --no-install-recommends -y \
# dependencies for building Python packages
build-essential \
# git for submodules
git \
# psycopg2 dependencies
libpq-dev
@@ -47,6 +49,8 @@ RUN apt-get update && apt-get install --no-install-recommends -y \
libpq-dev \
# Translations dependencies
gettext \
# git for submodules
git \
# cleaning up unused files
&& apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false \
&& rm -rf /var/lib/apt/lists/*

View File

@@ -107,7 +107,7 @@ def get_matchup_image(request, team_id, event_id, dimensions=None, background=No
image = gen_image(
**game_info, background=BACKGROUND, width=width, height=height
)
elif game_info["runs_for"] and game_info["runs_against"]:
elif game_info["runs_for"] or game_info["runs_against"]:
image = gen_results_image(
**game_info, background=BACKGROUND, width=width, height=height
)

View File

@@ -18,7 +18,7 @@ django-redis==5.2.0 # https://github.com/jazzband/django-redis
api-client
-e git+ssh://gituser@home.ascorrea.com/~/pyteamsnap.git#egg=pyteamsnap
-e git+ssh://gituser@home.ascorrea.com/~/gamescrapyr.git#egg=gamescrapyr
-e git+https://gitea.ascorrea.com/asc/pyteamsnap@2022#egg=pyteamsnap
-e git+https://gitea.ascorrea.com/asc/gamescrapyr.git#egg=gamescrapyr
beautifulsoup4==4.11.1