Index: trunk/ippMonitor/def/rawDetrendExp.d
===================================================================
--- trunk/ippMonitor/def/rawDetrendExp.d	(revision 19868)
+++ trunk/ippMonitor/def/rawDetrendExp.d	(revision 40882)
@@ -6,4 +6,7 @@
 # limit this table to non-OBJECT types of images
 WHERE (rawExp.exp_type != 'OBJECT' and rawExp.exp_type != 'LIGHT')
+
+RESTRICT_COUNT AND dateobs >= CURDATE()
+UNRESTRICTED AND dateobs >= CURDATE()
 
 ARGS ARG1 exp_id=$exp_id
