use the newer pypi table (#35)

This commit is contained in:
Flynn
2021-04-05 21:53:10 -04:00
committed by GitHub
parent 0c043bc2be
commit e956165572

View File

@@ -297,10 +297,13 @@ def get_query(date):
details.python AS python_version, details.python AS python_version,
details.system.name AS system details.system.name AS system
FROM FROM
`the-psf.pypi.downloads{date.replace("-", "")}` `the-psf.pypi.file_downloads`
WHERE WHERE
REGEXP_CONTAINS(details.python,r'^[0-9]\.[0-9]+.{{0,}}$') OR DATE(timestamp) = '{date}'
details.python IS NULL ) AND
(REGEXP_CONTAINS(details.python,r'^[0-9]\.[0-9]+.{{0,}}$') OR
details.python IS NULL)
)
SELECT SELECT
package, package,
'python_major' AS category_label, 'python_major' AS category_label,