Index: trunk/ippTools/share/laptool_definerun.sql
===================================================================
--- trunk/ippTools/share/laptool_definerun.sql	(revision 31603)
+++ trunk/ippTools/share/laptool_definerun.sql	(revision 31604)
@@ -8,9 +8,17 @@
   ) AS want
   LEFT JOIN 
-  (SELECT exp_id,MAX(chip_id) AS chip_id
-     FROM lapExp 
+  (SELECT exp_id,MAX(chip_id) AS chip_id, chipRun.state
+     FROM lapExp JOIN chipRun USING(exp_id,chip_id) 
      where private IS FALSE 
      AND chip_id IS NOT NULL
-     AND active = TRUE ) AS have USING(exp_id)
+     AND 
+     	 (
+	  -- (active = TRUE) OR 
+	  (chipRun.state = 'full') OR
+	  (chipRun.state = 'new')
+	  -- when we can do updates, put that here.
+	  )
+     GROUP BY exp_id
+) AS have USING(exp_id)
      
 
