Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Adithyak1997
.
Linter error module count
Toggle Highlighting
SQL
namespaces = list(range(0, 16)) + [100, 101, 108, 109, 118, 119, 446, 447, 710, 711, 828, 829, 2300, 2301, 2302, 2303]; linter_cat_order = [7, 12, 17, 16, 14, 9, 6, 13, 10, 15, 3, 1, 8, 11, 4, 2, 5]; for ns in namespaces: counts[ns] = {} for lint in linter_cat_order: counts[ns][lint] = 0 with conn.cursor() as cur: for ns in namespaces: for lint in linter_cat_order: cur.execute("select count(*) from linter inner join page on page.page_id=linter.linter_page where linter_cat={0} and page.page_namespace={1};".format(lint, ns))
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...