[open-ils-commits] r7708 - trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher

svn at svn.open-ils.org svn at svn.open-ils.org
Mon Aug 20 20:38:41 EDT 2007


Author: miker
Date: 2007-08-20 20:34:00 -0400 (Mon, 20 Aug 2007)
New Revision: 7708

Modified:
   trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
Log:
AGE was giving strange results, switched to simple addition

Modified: trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm
===================================================================
--- trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm	2007-08-21 00:24:16 UTC (rev 7707)
+++ trunk/Open-ILS/src/perlmods/OpenILS/Application/Storage/Publisher/action.pm	2007-08-21 00:34:00 UTC (rev 7708)
@@ -183,7 +183,7 @@
 	my $pl = shift;
 	my $cp = shift;
 	my $limit = int(shift()) || 10;
-	my $age = shift() || '0 seconds';
+	my $age = shift() || '0';
 
 	my $age_where = '';
 	if ($age) {
@@ -196,7 +196,7 @@
 		  	JOIN actor.org_unit_proximity p ON (p.from_org = h.pickup_lib)
 		  WHERE hm.target_copy = ?
 			AND p.to_org = ?
-		  	AND AGE(h.request_time) > ?
+		  	AND h.request_time + ? < NOW()
 			AND h.capture_time IS NULL
 		  	AND h.cancel_time IS NULL
 		ORDER BY



More information about the open-ils-commits mailing list