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