Skip to content

Commit

Permalink
A11Y query bugfixes (#2450)
Browse files Browse the repository at this point in the history
* A11Y query bugfixes

* Update audio_track_usage.sql

* Update audio_track_usage.sql

* Update form_required_controls.sql
  • Loading branch information
foxdavidj authored Nov 8, 2021
1 parent d693117 commit d6483a5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion sql/2021/accessibility/audio_track_usage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SELECT

SUM(total_with_track) / SUM(total_audios) AS pct_audios_with_tracks,
COUNTIF(total_audios > 0) / COUNT(0) AS pct_sites_with_audios,
COUNTIF(total_with_track > 0) / COUNT(0) AS pct_sites_with_audios_with_tracks
COUNTIF(total_with_track > 0) / COUNTIF(total_audios > 0) AS pct_audio_sites_with_tracks
FROM (
SELECT
_TABLE_SUFFIX AS client,
Expand Down
1 change: 1 addition & 0 deletions sql/2021/accessibility/form_required_controls.sql
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ RETURNS STRUCT<total INT64, asterisk INT64, required_attribute INT64, aria_requi
SELECT
client,
COUNT(0) AS total_sites,
COUNTIF(stats.total > 0) AS total_sites_with_required_controls,
SUM(stats.total) AS total_required_controls,

SUM(stats.asterisk) AS total_asterisk,
Expand Down
2 changes: 1 addition & 1 deletion sql/2021/accessibility/video_track_usage.sql
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ SELECT

SUM(total_with_track) / SUM(total_videos) AS pct_videos_with_tracks,
COUNTIF(total_videos > 0) / COUNT(0) AS pct_sites_with_videos,
COUNTIF(total_with_track > 0) / COUNT(0) AS pct_sites_with_videos_with_tracks
COUNTIF(total_with_track > 0) / COUNTIF(total_videos > 0) AS pct_video_sites_with_tracks
FROM (
SELECT
_TABLE_SUFFIX AS client,
Expand Down

0 comments on commit d6483a5

Please sign in to comment.