Index: trunk/ippTools/share/difftool_todiffskyfile.sql
===================================================================
--- trunk/ippTools/share/difftool_todiffskyfile.sql	(revision 19459)
+++ trunk/ippTools/share/difftool_todiffskyfile.sql	(revision 19558)
@@ -5,4 +5,5 @@
     diffRun.tess_id,
     diffRun.label,
+    diffRun.state,
     rawExp.camera
 FROM diffRun
@@ -26,8 +27,11 @@
     ON diffInputSkyfile.diff_id = diffSkyfile.diff_id
 WHERE
-  diffRun.state = 'new'
-  AND warpRun.state = 'full'
-  AND fakeRun.state = 'full'
-  AND camRun.state = 'full'
-  AND chipRun.state = 'full'
-  AND diffSkyfile.diff_id IS NULL
+  ((diffRun.state = 'new'
+      AND warpRun.state = 'full'
+      AND fakeRun.state = 'full'
+      AND camRun.state = 'full'
+      AND chipRun.state = 'full'
+      AND diffSkyfile.diff_id IS NULL)
+  OR (diffRun.state = 'update'
+      AND diffSkyfile.data_state = 'cleaned')
+  )
