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

@@ -12,7 +12,7 @@ logger = logging.getLogger(__name__)
EASTERN = ZoneInfo("America/New_York")
def get_scoreboard_data():
def fetch_scores():
now = datetime.now(EASTERN)
start_time_evening = now.replace(hour=19, minute=0, second=0, microsecond=0)
end_time_morning = now.replace(hour=3, minute=0, second=0, microsecond=0)
@@ -31,8 +31,8 @@ def get_scoreboard_data():
return None
def store_scoreboard_data():
scoreboard_data = get_scoreboard_data()
def refresh_scores():
scoreboard_data = fetch_scores()
if scoreboard_data:
with open(SCOREBOARD_DATA_FILE, "w") as json_file:
json.dump(scoreboard_data, json_file)