Switch to bigquery-public-data datset from the-psf (#39)

This commit is contained in:
Dustin Ingram
2021-06-30 19:29:09 -05:00
committed by GitHub
parent e44f3944da
commit da4d4aa8da
4 changed files with 5 additions and 5 deletions

View File

@@ -297,11 +297,11 @@ def get_query(date):
details.python AS python_version,
details.system.name AS system
FROM
`the-psf.pypi.file_downloads`
`bigquery-public-data.pypi.file_downloads`
WHERE
DATE(timestamp) = '{date}'
AND
(REGEXP_CONTAINS(details.python,r'^[0-9]\.[0-9]+.{{0,}}$') OR
(REGEXP_CONTAINS(details.python,r'^[0-9]\.[0-9]+.{{0,}}$') OR
details.python IS NULL)
)
SELECT