Fix truncation bug for library PyPI downloads

This commit is contained in:
Alec Delaney 2022-12-05 09:46:27 -05:00 committed by GitHub
parent f5b014ddc6
commit 2128e27005
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -253,7 +253,7 @@ def run_library_checks(validators, kw_args, error_depth):
if line.startswith(
"**Total PyPI library downloads in the last 7 days:"
):
total_library_pypi_stats = int(line[51:-4])
total_library_pypi_stats = int(line[51:-2])
continue
if line.startswith("|"):
parts = [part.strip() for part in line.split("|") if part.strip()]