Browse Source

SQL is dumb.

pull/15/head
Ben Kurtovic 11 years ago
parent
commit
4a9e02f861
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      tasks/afc_statistics.py

+ 2
- 1
tasks/afc_statistics.py View File

@@ -233,7 +233,8 @@ class AFCStatistics(Task):
r.page_latest, r.page_title, r.page_namespace r.page_latest, r.page_title, r.page_namespace
FROM page AS s FROM page AS s
LEFT JOIN {0}_p.page AS r ON s.page_id = r.page_id LEFT JOIN {0}_p.page AS r ON s.page_id = r.page_id
WHERE s.page_modify_oldid != r.page_latest"""
WHERE s.page_modify_oldid != r.page_latest
OR r.page_id IS NULL"""
cursor.execute(query.format(self.site.name)) cursor.execute(query.format(self.site.name))


for pageid, title, oldid, real_oldid, real_title, real_ns in cursor: for pageid, title, oldid, real_oldid, real_title, real_ns in cursor:


Loading…
Cancel
Save