From 9100cd6ced3f73291fb7137e3c664a3b01d74e46 Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Wed, 15 Jan 2025 22:16:55 -0600 Subject: [PATCH] Flip teams to format @ Checking the first ten or so results, the ESPN API always seems to return them in this order. If that ever stops being the case, we can always check if `competitors[0]` is home or away, but that appears to be unnecessary at this point. Requested-By: Eric Villnow Fixes: #2 --- static/upcoming-games.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/upcoming-games.html b/static/upcoming-games.html index 62839e3..be9bd92 100644 --- a/static/upcoming-games.html +++ b/static/upcoming-games.html @@ -70,10 +70,10 @@ const competition = event.competitions[0]; console.log(competition); const params = new URLSearchParams({ - left_logo: competition.competitors[0].team.logo, - right_logo: competition.competitors[1].team.logo, - left_color: competition.competitors[0].team.color, - right_color: competition.competitors[1].team.color, + left_logo: competition.competitors[1].team.logo, + right_logo: competition.competitors[0].team.logo, + left_color: competition.competitors[1].team.color, + right_color: competition.competitors[0].team.color, }); const a = document.createElement('a');