From 44c344cd1f19dadd7586fa044731c8b92a7366ca Mon Sep 17 00:00:00 2001 From: Anthony Correa Date: Sat, 6 May 2023 12:14:42 -0500 Subject: [PATCH] allow for score of 0 for team in instagen --- instagen/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/instagen/views.py b/instagen/views.py index ac2cdf1..cff2dac 100644 --- a/instagen/views.py +++ b/instagen/views.py @@ -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 )