mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
more robust half time detection
This commit is contained in:
@@ -396,7 +396,7 @@ class BaseNCAAMBasketballManager:
|
||||
"period": status.get("period", 0),
|
||||
"clock": status.get("displayClock", "0:00"),
|
||||
"is_live": status["type"]["state"] in ("in", "halftime"), # Include halftime as live
|
||||
"is_halftime": status["type"]["state"] == "halftime",
|
||||
"is_halftime": status["type"]["state"] == "halftime" or status["type"]["name"] == "STATUS_HALFTIME",
|
||||
"is_final": status["type"]["state"] == "post",
|
||||
"is_upcoming": status["type"]["state"] == "pre",
|
||||
"home_abbr": home_team["team"]["abbreviation"],
|
||||
|
||||
Reference in New Issue
Block a user