From b90e1ff8927e7c621acbf2c12a1aeec05d84356b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 13 Aug 2013 12:47:14 +0200 Subject: [PATCH] Bug 10419: (follow-up) fix hardcoded records and pod Signed-off-by: Jonathan Druart Signed-off-by: Bernardo Gonzalez Kriegel Missing a sign. Removes harcoded values Signed-off-by: Katrin Fischer Signed-off-by: Galen Charlton --- misc/cronjobs/delete_patrons.pl | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/misc/cronjobs/delete_patrons.pl b/misc/cronjobs/delete_patrons.pl index 119ac1ce03..cc47b7ac52 100755 --- a/misc/cronjobs/delete_patrons.pl +++ b/misc/cronjobs/delete_patrons.pl @@ -56,8 +56,6 @@ my $dbh = C4::Context->dbh; $dbh->{RaiseError} = 1; $dbh->{PrintError} = 0; -@$members = ( { borrowernumber => 19 } ); - $dbh->{AutoCommit} = 0; # use transactions to avoid partial deletes for my $member (@$members) { print "Trying to delete patron $member->{borrowernumber}... " @@ -96,7 +94,7 @@ delete_patrons - This script deletes patrons =head1 SYNOPSIS -delete_patrons.pl [-h -v -c] --not_borrowed_since=2013-07-21 --expired_before=2013-07-21 --category_code=CAT --branchcode=CPL +delete_patrons.pl [-h -v -c] --not_borrowed_since=2013-07-21 --expired_before=2013-07-21 --category_code=CAT --library=CPL dates can be generated with `date -d '-3 month' "+%Y-%m-%d"` @@ -122,7 +120,7 @@ Delete patrons with an account expired before this date. Delete patrons who have this category code. -=item B<--branchcode> +=item B<--library> Delete patrons in this library. -- 2.39.5