Introduce a 'games this month' column
[asr.git] / decay.pl
blob512dad6a2e689e1235e49c76fa65c677f7e74dec
1 #!/usr/bin/perl
3 use strict;
4 use warnings;
5 use lib qw(/home/pasky/WWW/asr);
6 use ASR;
7 use POSIX qw/strftime/;
8 use Carp qw/cluck/;
9 $SIG{__WARN__} = sub { cluck $_[0] };
11 my $ctx = ASR::Ladder->new;
13 $ctx->db_do('UPDATE player SET score = score-'.$ctx->{scoring}->{dailydrop}.' WHERE score > 100');