Skip to content

Commit 8380993

Browse files
authored
Merge pull request #3005 from brentru/update-matrixportal-scroll-guide
Update Matrix Portal New Guide Scroller Code.py
2 parents ef9f2cc + aeaceae commit 8380993

File tree

1 file changed

+2
-2
lines changed
  • Matrix_Portal/Matrix_Portal_Learn_Stats

1 file changed

+2
-2
lines changed

Matrix_Portal/Matrix_Portal_Learn_Stats/code.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
DISPLAY_NUM_GUIDES = 5
1414
# Data source URL
1515
DATA_SOURCE = (
16-
"https://learn.adafruit.com/api/guides/new.json?count=%d" % DISPLAY_NUM_GUIDES
16+
"https://learn.adafruit.com/api/guides.json?count=%d" % DISPLAY_NUM_GUIDES
1717
)
1818
TITLE_DATA_LOCATION = ["guides"]
1919

@@ -65,7 +65,7 @@ def get_guide_info(index):
6565
print("Obtaining guide info for guide %d..." % index)
6666

6767
# Traverse JSON data for title
68-
guide_count = matrixportal.network.json_traverse(als_data.json(), ["guide_count"])
68+
guide_count = matrixportal.network.json_traverse(als_data.json(), ["guides_total_count"])
6969

7070
# Set guide count
7171
matrixportal.set_text(guide_count, 0)

0 commit comments

Comments
 (0)