[open-ils-commits] r10220 - trunk/Open-ILS/src/support-scripts
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Jul 31 12:16:18 EDT 2008
Author: miker
Date: 2008-07-31 12:16:11 -0400 (Thu, 31 Jul 2008)
New Revision: 10220
Modified:
trunk/Open-ILS/src/support-scripts/fine_generator.pl
Log:
make grace period a command line parameter
Modified: trunk/Open-ILS/src/support-scripts/fine_generator.pl
===================================================================
--- trunk/Open-ILS/src/support-scripts/fine_generator.pl 2008-07-31 15:53:44 UTC (rev 10219)
+++ trunk/Open-ILS/src/support-scripts/fine_generator.pl 2008-07-31 16:16:11 UTC (rev 10220)
@@ -12,6 +12,7 @@
my $config = shift || die "bootstrap config required\n";
my $lockfile = shift || "/tmp/generate_fines-LOCK";
+my $grace = int(shift()) || 1;
if (-e $lockfile) {
open(F,$lockfile);
@@ -36,7 +37,7 @@
my $r = OpenSRF::AppSession
->create( 'open-ils.storage' )
- ->request( 'open-ils.storage.action.circulation.overdue.generate_fines' => 1 );
+ ->request( 'open-ils.storage.action.circulation.overdue.generate_fines' => $grace );
while (!$r->complete) { $r->recv };
More information about the open-ils-commits
mailing list