User:AnomieBOT/source/tasks/DatedCategoryDeleterTest.pm: Difference between revisions
Content deleted Content added
Updating published sources: General: * Update for the addition of 'rvslots'. DatedCategoryDeleterTest: * Disable. It's clear that task won't be needed. BrokenRedirectDeleter: * Handle pages with newlines before the <code>#REDIRECT</code>. |
Updating published sources: DatedCategoryDeleterTest: * There doesn't seem to be much need for this still. Turning it back off. |
||
(One intermediate revision by the same user not shown) | |||
Line 1:
{{ombox|type=notice|text= Per [[WP:BOT#Approval]], any bot or automated editing process that only affects only the operators' user and talk pages (or subpages thereof), and which are not otherwise disruptive, may be run without prior approval.}}
{{ombox|type=notice|text= As of 2019-02-10, there doesn't seem to be any need for this.}}
<syntaxhighlight lang="perl">
package tasks::DatedCategoryDeleterTest;
Line 17 ⟶ 18:
categories would be useful. It will log to a subpage and we'll see how often it
actually finds anything.
=end metadata
Line 48 ⟶ 47:
and which are not otherwise disruptive, may be run without prior
approval.
=for info
As of 2019-02-10, there doesn't seem to be any need for this.
=cut
sub approved {
return
}
Line 74 ⟶ 76:
SELECT page_namespace, page_title
FROM page JOIN categorylinks AS c1 ON(c1.cl_from=page_id) JOIN categorylinks AS c2 ON(c2.cl_from=page_id)
WHERE c1.cl_to = 'Candidates_for_uncontroversial_speedy_deletion' AND c2.cl_to = '
}, { Slice => {} } ) };
};
Line 121 ⟶ 123:
my $txt = $tok->{'revisions'}[0]{'slots'}{'main'}{'*'} // '';
unless ( $txt =~ /\s*\{\{Monthly clean[ -]up category(?:\s*\|[^\}]*)?\}\}\s*$/ ) {
$api->log( "Skipping [[Category:$title]], content isn't as expected" );
next;
|