Skip to content

Commit

Permalink
added a few more exceptions, per user request
Browse files Browse the repository at this point in the history
  • Loading branch information
MZMcBride committed May 4, 2009
1 parent ccdd598 commit c9aaa90
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions emptycats.py
Expand Up @@ -24,7 +24,11 @@
report_title = settings.rootpage + 'Empty categories'

report_template = u'''
Empty categories not in [[:Category:Wikipedia category redirects]], not in [[:Category:Disambiguation categories]], and do not contain "(-importance|-class|non-article|assess|_articles_missing_|_articles_in_need_of_|_articles_undergoing_|_articles_to_be_|_articles_not_yet_|Wikipedia_featured_topics)"; data as of <onlyinclude>%s</onlyinclude>.
Empty categories not in [[:Category:Wikipedia category redirects]], not in \
[[:Category:Disambiguation categories]], and do not contain "(-importance|\
-class|non-article|assess|articles missing|articles in need of|articles undergoing|\
articles to be|articles not yet|articles with|articles without|articles needing|\
Wikipedia featured topics)"; data as of <onlyinclude>%s</onlyinclude>.
{| class="wikitable sortable plainlinks" style="width:100%%; margin:auto;"
|- style="white-space:nowrap;"
Expand Down Expand Up @@ -72,7 +76,7 @@
i = 1
output = []
for row in cursor.fetchall():
if not re.search(r'(-importance|-class|non-article|assess|_articles_missing_|_articles_in_need_of_|_articles_undergoing_|_articles_to_be_|_articles_not_yet_|Wikipedia_featured_topics)', row[0], re.I|re.U):
if not re.search(r'(-importance|-class|non-article|assess|_articles_missing_|_articles_in_need_of_|_articles_undergoing_|_articles_to_be_|_articles_not_yet_|_articles_with_|_articles_without_|_articles_needing_|Wikipedia_featured_topics)', row[0], re.I|re.U):
page_title = u'{{clh|1=%s}}' % unicode(row[0], 'utf-8')
page_len = row[1]
table_row = u'''| %d
Expand Down

0 comments on commit c9aaa90

Please sign in to comment.