Skip to content

Commit 01e4261

Browse files
authored
Merge pull request #1946 from FoamyGuy/magtag_project_fixes
Magtag project fixes
2 parents 2a77813 + f6ab55b commit 01e4261

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

MagTag_Sports_Schedule/code.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@
2525
SPORTS = [
2626
{
2727
"name": "NCAA Men's Basketball",
28-
#pylint: disable=line-too-long
28+
# pylint: disable=line-too-long
2929
"url": "http://site.api.espn.com/apis/site/v2/sports/basketball/mens-college-basketball/scoreboard",
3030
},
3131
{
3232
"name": "NCAA Wmn's Basketball",
33-
#pylint: disable=line-too-long
33+
# pylint: disable=line-too-long
3434
"url": "http://site.api.espn.com/apis/site/v2/sports/basketball/womens-college-basketball/scoreboard",
3535
},
3636
{
@@ -185,7 +185,7 @@ def update_labels():
185185

186186
def fetch_sports_data(reset_game_number=True):
187187
# Fetches and parses data for all games for the current sport
188-
#pylint: disable=global-statement
188+
# pylint: disable=global-statement
189189
global sports_data, current_game, current_sport
190190
magtag.url = SPORTS[current_sport]["url"]
191191
sports_data.clear()
@@ -229,12 +229,12 @@ def fetch_sports_data(reset_game_number=True):
229229

230230
# Broadcast Information
231231
magtag.add_text(
232-
text_font="/fonts/Arial-Italic-12.bdf", text_position=(10, 100), is_data=False
232+
text_font="/fonts/Arial-Italic-12.bdf", text_position=(10, 98), is_data=False
233233
)
234234

235235
# Game Status
236236
magtag.add_text(
237-
text_font="/fonts/Arial-Italic-12.bdf", text_position=(10, 120), is_data=False
237+
text_font="/fonts/Arial-Italic-12.bdf", text_position=(10, 116), is_data=False
238238
)
239239

240240
# Game Number

MagTag_Tides/code.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ def show_hilo():
231231
for i, data in enumerate(hilo_data):
232232
# make it visible
233233
hilo_icons[i].hidden = False
234+
hilo_times[i].hidden = False
234235
# icon
235236
hilo_icons[i][0] = 0 if data["type"] == "H" else 1
236237
# time
@@ -256,6 +257,7 @@ def time_to_sleep():
256257
# return it
257258
return remaining
258259

260+
259261
# ===========
260262
# M A I N
261263
# ===========

0 commit comments

Comments
 (0)