User:AnomieBOT/source/tasks/WikiProjectWorker.pm: Difference between revisions

Content deleted Content added
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * Done several days ago, forgot to turn it off.
AnomieBOT (talk | contribs)
Updating published sources: WikiProjectWorker: * Start run for WikiProject Geology.
Line 33:
 
### Request link, for edit summary.
my $req="[[User:AnomieBOT/req/WikiProject BiophysicsGeology 1|request]]";
 
### Increment this number every time a new run is started, so we don't have to
### mess around with deleting previous runs' database entries.
my $seq=1819;
 
### How to find the pages?
my @cats=(
'Category:AnimalUnknown-importance flightGeology articles',
'Category:Bioelectrochemistry',
'Category:Biological matter',
'Category:Biomechanics',
'Category:Biophysicists',
'Category:Bird flight',
'Category:Cell adhesion molecules',
'Category:Cell movement',
'Category:Ion channels',
'Category:Locomotion',
'Category:Magnetoception',
'Category:Membrane biology',
'Category:Protein targeting',
'Category:SIGLEC',
'Category:Structural biology',
'Category:Welsh biophysicists',
);
my @iterators=(
Line 76 ⟶ 61:
### How to copy other projects' assessments
sub copy_class {
#return ($_[0]->WPBmax($_[2]))[0];
#return '';
}
 
sub copy_importance {
#return ($_[0]->WPBmax($_[2]))[1];
#return 'Low';
}
 
# Banner configurations.
my $main_banner='WikiProject BiophysicsGeology';
my @preprocess_templates=();
my %banner_cfgs=(
'WikiProject BiophysicsGeology' => {
meta => 1,
canonicalize => 'WikiProject BiophysicsGeology',
},
);
Line 219 ⟶ 204:
$assess=undef;
push @params, "class=$class";
my $imp = copy_importance($api, $title, $intxt);
if(ref($imp) eq 'HASH'){
$api->warn("Processing $title failed: ".$imp->{'error'}."\n");
next;
}
push @params, "importance=$imp" if ($imp//'') ne '';
}
 
if(1){ # Always copy importance?
my $imp = copy_importance($api, $title, $intxt);
if(ref($imp) eq 'HASH'){