fix: drop leading zero for scheduled games
This commit is contained in:
@@ -58,7 +58,11 @@ def process_time_remaining(game):
|
||||
def process_start_time(game):
|
||||
if game["gameState"] in ["PRE", "FUT"]:
|
||||
utc_time = game["startTimeUTC"]
|
||||
return utc_to_est_time(utc_time)
|
||||
est_time = utc_to_est_time(utc_time)
|
||||
# Check if the hour starts with a zero
|
||||
if est_time.startswith("0"):
|
||||
est_time = est_time[1:] # Drop the leading zero
|
||||
return est_time
|
||||
else:
|
||||
return "N/A"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user