style: apply ruff format and fix lint issues in playoff modules
- Rename single-letter `l` loop variables in bracket_view to satisfy E741 - Drop unused `json` import from test_playoff_cache (F401/F811) Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
+5
-3
@@ -30,9 +30,11 @@ def series_id(game):
|
||||
return None
|
||||
start = game.get("startTimeUTC") or ""
|
||||
try:
|
||||
year = datetime.fromisoformat(start.replace("Z", "+00:00")).astimezone(
|
||||
EASTERN
|
||||
).year
|
||||
year = (
|
||||
datetime.fromisoformat(start.replace("Z", "+00:00"))
|
||||
.astimezone(EASTERN)
|
||||
.year
|
||||
)
|
||||
except (ValueError, AttributeError):
|
||||
year = datetime.now(EASTERN).year
|
||||
return f"{year}-{letter.upper()}"
|
||||
|
||||
Reference in New Issue
Block a user