mirror of
https://github.com/LukeHagar/pypistats.org.git
synced 2025-12-07 20:57:47 +00:00
Switch to bigquery-public-data datset from the-psf (#39)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user