Permalink
Browse files

adjusted query to account for local image redirects

  • Loading branch information...
MZMcBride
MZMcBride committed Apr 7, 2009
1 parent f539081 commit eb797886862517e3ad3b44607c41c3f23ab5540e
Showing with 14 additions and 11 deletions.
  1. +14 −11 redlinkedfilesinarticles.py
@@ -49,17 +49,20 @@
FROM page
JOIN imagelinks
ON page_id = il_from
WHERE (NOT EXISTS(
SELECT
1
FROM image
WHERE img_name = il_to))
AND (NOT EXISTS(
SELECT
1
FROM commonswiki_p.page
WHERE page_title = il_to
AND page_namespace = 6))
WHERE (NOT EXISTS (SELECT
1
FROM image
WHERE img_name = il_to))
AND (NOT EXISTS (SELECT
1
FROM commonswiki_p.page
WHERE page_title = il_to
AND page_namespace = 6))
AND (NOT EXISTS (SELECT
1
FROM page
WHERE page_title = il_to
AND page_namespace = 6))
AND page_namespace = 0;
''')

0 comments on commit eb79788

Please sign in to comment.