mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-11 13:23:00 +00:00
Update upcoming game text to 'Next Game' and change date format to numerical (e.g. 4/19)
This commit is contained in:
@@ -178,7 +178,7 @@ class BaseNHLManager:
|
|||||||
# Convert to local time
|
# Convert to local time
|
||||||
local_time = start_time_utc.astimezone()
|
local_time = start_time_utc.astimezone()
|
||||||
game_time = local_time.strftime("%-I:%M %p")
|
game_time = local_time.strftime("%-I:%M %p")
|
||||||
game_date = local_time.strftime("%b %d")
|
game_date = local_time.strftime("%-m/%-d")
|
||||||
|
|
||||||
details = {
|
details = {
|
||||||
"start_time_utc": start_time_utc,
|
"start_time_utc": start_time_utc,
|
||||||
@@ -273,8 +273,8 @@ class BaseNHLManager:
|
|||||||
date_time_y = self.display_height - 15
|
date_time_y = self.display_height - 15
|
||||||
draw.text((date_time_x, date_time_y), date_time_text, font=self.fonts['time'], fill=(255, 255, 255))
|
draw.text((date_time_x, date_time_y), date_time_text, font=self.fonts['time'], fill=(255, 255, 255))
|
||||||
|
|
||||||
# Show "Upcoming Game" at the top
|
# Show "Next Game" at the top
|
||||||
status_text = "Upcoming Game"
|
status_text = "Next Game"
|
||||||
status_width = draw.textlength(status_text, font=self.fonts['status'])
|
status_width = draw.textlength(status_text, font=self.fonts['status'])
|
||||||
status_x = (self.display_width - status_width) // 2
|
status_x = (self.display_width - status_width) // 2
|
||||||
status_y = 5
|
status_y = 5
|
||||||
|
|||||||
Reference in New Issue
Block a user