mirror of
https://github.com/LukeHagar/pypistats.dev.git
synced 2025-12-09 12:47:48 +00:00
use the newer pypi table (#35)
This commit is contained in:
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user