Content deleted Content added
Updating published sources: AnomieBOT::API: * Add configuration variable (and accessor function) for the bot operator's username * Better logging when testing uploads All tasks: * Remove useless metadata field |
Updating published sources: AnomieBOT::Task: * Allow for easy exporting of POSIX::strftime, Time::Local::timegm, and Time::Local::timelocal. * Remove unneeded "use" directives. All tasks, where applicable: * Use the new exports instead of directly us |
||
Line 25:
use strict;
use AnomieBOT::Task qw/:time/;
use Data::Dumper;
use POSIX;
Line 93:
for(my $d=1; $d<=31; $d++){
my $md=sprintf("%02d-%02d",$m,$d);
next unless
my $res=$api->query([],
titles =>
prop => 'revisions',
rvprop => 'ids|timestamp',
Line 417:
# The anniversary pages were created 2004-02-26 through 2004-02-28; We count
# 2004-02-26 as day 0. This function does
# Thankfully, it correctly converts
sub day {
my $fmt=shift;
my $day=shift;
return
}
Line 428:
my $ts=shift;
my ($min,$max)=(0,5000);
my $target=
while(1){
my $day=day("%F",$max);
|