We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef9f2cc + aeaceae commit 8380993Copy full SHA for 8380993
Matrix_Portal/Matrix_Portal_Learn_Stats/code.py
@@ -13,7 +13,7 @@
13
DISPLAY_NUM_GUIDES = 5
14
# Data source URL
15
DATA_SOURCE = (
16
- "https://learn.adafruit.com/api/guides/new.json?count=%d" % DISPLAY_NUM_GUIDES
+ "https://learn.adafruit.com/api/guides.json?count=%d" % DISPLAY_NUM_GUIDES
17
)
18
TITLE_DATA_LOCATION = ["guides"]
19
@@ -65,7 +65,7 @@ def get_guide_info(index):
65
print("Obtaining guide info for guide %d..." % index)
66
67
# Traverse JSON data for title
68
- guide_count = matrixportal.network.json_traverse(als_data.json(), ["guide_count"])
+ guide_count = matrixportal.network.json_traverse(als_data.json(), ["guides_total_count"])
69
70
# Set guide count
71
matrixportal.set_text(guide_count, 0)
0 commit comments