Skip to content

Commit

Permalink
use the newer pypi table (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
crflynn authored Apr 6, 2021
1 parent 0c043bc commit e956165
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions pypistats/tasks/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -297,10 +297,13 @@ def get_query(date):
details.python AS python_version,
details.system.name AS system
FROM
`the-psf.pypi.downloads{date.replace("-", "")}`
`the-psf.pypi.file_downloads`
WHERE
REGEXP_CONTAINS(details.python,r'^[0-9]\.[0-9]+.{{0,}}$') OR
details.python IS NULL )
DATE(timestamp) = '{date}'
AND
(REGEXP_CONTAINS(details.python,r'^[0-9]\.[0-9]+.{{0,}}$') OR
details.python IS NULL)
)
SELECT
package,
'python_major' AS category_label,
Expand Down

0 comments on commit e956165

Please sign in to comment.