From 0f70c527fd2587ddc0918284ff6a88da7fb44d45 Mon Sep 17 00:00:00 2001 From: todd Date: Sun, 13 Oct 2024 08:36:33 -0400 Subject: [PATCH] fix(nflgt): error due to some data not being populated early Sunday morning ver(nflgt): 2.4.1 ver(platform): 2024.10.4 --- bots/nfl_game_threads/__init__.py | 2 +- bots/nfl_game_threads/templates/division_scoreboard.mako | 2 ++ redball/version.py | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/bots/nfl_game_threads/__init__.py b/bots/nfl_game_threads/__init__.py index a6020ce..b390d7c 100644 --- a/bots/nfl_game_threads/__init__.py +++ b/bots/nfl_game_threads/__init__.py @@ -32,7 +32,7 @@ import praw -__version__ = "2.4" +__version__ = "2.4.1" DATA_LOCK = threading.Lock() diff --git a/bots/nfl_game_threads/templates/division_scoreboard.mako b/bots/nfl_game_threads/templates/division_scoreboard.mako index 86c915a..c6c7407 100644 --- a/bots/nfl_game_threads/templates/division_scoreboard.mako +++ b/bots/nfl_game_threads/templates/division_scoreboard.mako @@ -32,6 +32,8 @@ ${'##'} Division Scoreboard toTz = pytz.timezone(settings.get("Bot", {}).get("TEAM_TIMEZONE", "America/New_York")) formattedGameTime = dt.astimezone(toTz).strftime("%I:%M %p") gd = data["otherTodayGamesDetails"].get(game["id"], {}) + if not gd.get("visitorTeam") or not gd.get("homeTeam"): + continue %>\ |${qtrDesc[gd["period"]] if gd.get("period") else ""} ${gd["gameClock"] if gd.get("phase") == "INGAME" else gameStatusDesc[gd["phase"]] if gd.get("phase") != "PREGAME" else formattedGameTime}|| |:--|:--| diff --git a/redball/version.py b/redball/version.py index e5bc9e3..2180869 100644 --- a/redball/version.py +++ b/redball/version.py @@ -1,3 +1,3 @@ #!/usr/bin/env python -VERSION = "2024.10.3" +VERSION = "2024.10.4"