Index: trunk/ippMonitor/def/chipPendingImfile.d
===================================================================
--- trunk/ippMonitor/def/chipPendingImfile.d	(revision 27892)
+++ trunk/ippMonitor/def/chipPendingImfile.d	(revision 40882)
@@ -1,3 +1,3 @@
-TABLE chipRun, rawExp, rawImfile
+TABLE chipRun JOIN rawExp using (exp_id) JOIN rawImfile using (exp_id)
 TITLE Chip Pending Imfiles
 FILE  chipPendingImfile.php
@@ -9,6 +9,7 @@
 # limit this table to OBJECT types of images
 WHERE chipRun.state = 'new'
-WHERE chipRun.exp_id = rawExp.exp_id
-WHERE rawImfile.exp_id = rawExp.exp_id
+
+RESTRICT_COUNT AND rawExp.dateobs >= CURDATE()
+UNRESTRICTED AND rawExp.dateobs >= CURDATE()
 
 ARGS  ARG1 rawImfile.exp_id=$rawExp.exp_id
