Skip to content

Commit b3a86a4

Browse files
committed
circuitpython_libraries: update blinka stats; change 'PyPI' labels to 'Piwheels'
1 parent 01754a0 commit b3a86a4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

adabot/circuitpython_libraries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,8 +293,8 @@ def run_library_checks(validators, bundle_submodules, latest_pylint, kw_args):
293293
print_issue_overview(blinka_insights)
294294
output_handler("* {} open issues".format(len(blinka_insights["open_issues"])))
295295
output_handler(" * https://github.com/adafruit/Adafruit_Blinka/issues")
296-
blinka_dl, _ = dl_stats.pypistats_get('adafruit-blinka')
297-
output_handler("* PyPI Downloads in the last week: {}".format(blinka_dl))
296+
blinka_dl = dl_stats.piwheels_stats().get('adafruit-blinka', {}).get("month", "N/A")
297+
output_handler("* Piwheels Downloads in the last month: {}".format(blinka_dl))
298298
output_handler(
299299
"Number of supported boards: {}".format(blinka_funcs.board_count())
300300
)

adabot/circuitpython_library_download_stats.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ def run_stat_check():
141141
pypi_failures = []
142142
downloads_list = [["| Library", "| Last Month", "| Total |"],
143143
["|:-------", "|:--------:", "|:-----:|"]]
144-
output_handler("Adafruit CircuitPython Library PyPi downloads:")
144+
output_handler("Adafruit CircuitPython Library Piwheels downloads:")
145145
output_handler()
146146
pypi_downloads, pypi_failures = get_pypi_stats()
147147
for stat in sorted(pypi_downloads.items(), key=operator.itemgetter(1,1), reverse=True):

0 commit comments

Comments
 (0)