Koha/misc/cronjobs/services_throttle.pl
Joshua Ferraro 55f3444429 adding xisbn support
Signed-off-by: Chris Cormack <crc@liblime.com>
Signed-off-by: Joshua Ferraro <jmf@liblime.com>
2007-11-17 10:49:30 -06:00

12 lines
348 B
Perl
Executable file

#!/usr/bin/perl
#run nightly -- resets the services throttle
use strict; use warnings;
use C4::Context;
my $dbh=C4::Context->dbh;
my $fixit="UPDATE services_throttle SET service_count=0 WHERE service_type='xisbn'";
my $sth=$dbh->prepare($fixit);
my $res = $sth->execute() or die "can't execute";
print "$res\n"; #did it work?
$dbh->disconnect();