allow for score of 0 for team in instagen

This commit is contained in:
2023-05-06 12:14:42 -05:00
parent 96a75eb4bb
commit 44c344cd1f

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
)