refactor: rename functions across codebase for clarity
All checks were successful
CI / Lint (push) Successful in 7s
CI / Test (push) Successful in 5s
CI / Build & Push (push) Successful in 14s

This commit is contained in:
2026-03-29 10:21:01 -04:00
parent a4dc7dff52
commit dd5ac945bd
7 changed files with 70 additions and 69 deletions

View File

@@ -4,7 +4,7 @@ from flask import render_template, jsonify
from app import app
from app.config import SCOREBOARD_DATA_FILE
from app.games import extract_game_info
from app.games import parse_games
@app.route("/")
@@ -27,17 +27,15 @@ def get_scoreboard():
if scoreboard_data:
live_games = [
game
for game in extract_game_info(scoreboard_data)
for game in parse_games(scoreboard_data)
if game["Game State"] == "LIVE"
]
pre_games = [
game
for game in extract_game_info(scoreboard_data)
if game["Game State"] == "PRE"
game for game in parse_games(scoreboard_data) if game["Game State"] == "PRE"
]
final_games = [
game
for game in extract_game_info(scoreboard_data)
for game in parse_games(scoreboard_data)
if game["Game State"] == "FINAL"
]
return jsonify(