refactor: rename functions across codebase for clarity
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user