Index: /tags/ipp-ps2-20190404/ippScripts/scripts/night_report.pl
===================================================================
--- /tags/ipp-ps2-20190404/ippScripts/scripts/night_report.pl	(revision 40761)
+++ /tags/ipp-ps2-20190404/ippScripts/scripts/night_report.pl	(revision 40762)
@@ -768,5 +768,5 @@
 # count the number of chunks, and their status:
 if ($verbose or $chunks) {
-    print "Current status of SS chunks:\n";
+    print "Current status of SS and Euclid chunks:\n";
 
     #This is a long query, but it efficiently gathers all the necessary information
@@ -775,6 +775,6 @@
     $query .= "     SELECT dateobs,comment,substr(comment, 1, position(' ' in comment)) AS chunk,count(*) AS Nquad_firstvisit";
     $query .= "     FROM rawExp";
-    $query .= "     WHERE dateobs LIKE '$date%' AND obs_mode LIKE '%SS%'";
-    $query .= "     AND obs_mode LIKE '%SS%' AND obs_mode NOT LIKE 'ENGINEERING'";
+    $query .= "     WHERE dateobs LIKE '$date%'";
+    $query .= "     AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%') AND obs_mode NOT LIKE 'ENGINEERING'";
     $query .= "     AND comment LIKE '%visit 1%'";
     $query .= "     GROUP BY chunk";
@@ -785,5 +785,5 @@
     $query .= "       (SELECT substr(comment, 1, position(' ' in comment)) AS chunk,count(*) AS Nvisits";
     $query .= "         FROM rawExp";
-    $query .= "         WHERE obs_mode LIKE '%' AND dateobs LIKE '$date%' AND obs_mode like '%SS%'";
+    $query .= "         WHERE dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')";
     $query .= "         AND obs_mode NOT LIKE 'ENGINEERING' AND comment LIKE '%visit%'";
     $query .= "         GROUP BY object, filter, chunk";
@@ -798,5 +798,5 @@
     $query .= "       (SELECT exp_name,comment,dateobs";
     $query .= "         FROM rawExp ";
-    $query .= "         WHERE dateobs LIKE '$date%' AND obs_mode LIKE '%SS%' AND obs_mode NOT LIKE 'ENGINEERING'";
+    $query .= "         WHERE dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%') AND obs_mode NOT LIKE 'ENGINEERING'";
     $query .= "       ) AS expall ";
     $query .= "     LEFT JOIN";
@@ -806,5 +806,5 @@
     $query .= "           diffRun JOIN diffInputSkyfile USING (diff_id) JOIN publishRun ON (diff_id = stage_id) JOIN warpRun ON (warp1=warp_id)";
     $query .= "           JOIN fakeRun USING (fake_id) JOIN camRun USING (cam_id) JOIN camProcessedExp USING (cam_id) JOIN chipRun USING (chip_id) JOIN rawExp USING (exp_id)";
-    $query .= "           WHERE rawExp.dateobs LIKE '$date%' AND diffRun.reduction LIKE 'SWEETSPOT'";
+    $query .= "           WHERE rawExp.dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')";
     $query .= "           AND stack2 IS NULL AND diffRun.diff_id=stage_id";
     $query .= "         )  ";
@@ -813,5 +813,5 @@
     $query .= "           diffRun JOIN diffInputSkyfile USING (diff_id) JOIN publishRun ON (diff_id = stage_id) JOIN warpRun ON (warp2=warp_id)";
     $query .= "           JOIN fakeRun USING (fake_id) JOIN camRun USING (cam_id) JOIN camProcessedExp USING (cam_id) JOIN chipRun USING (chip_id) JOIN rawExp USING (exp_id)";
-    $query .= "           WHERE rawExp.dateobs LIKE '$date%' AND diffRun.reduction LIKE 'SWEETSPOT'";
+    $query .= "           WHERE rawExp.dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')";
     $query .= "           AND stack2 IS NULL AND diffRun.diff_id=stage_id";
     $query .= "         )";
Index: /tags/ipp-ps2-20190404/tools/fixburntool
===================================================================
--- /tags/ipp-ps2-20190404/tools/fixburntool	(revision 40761)
+++ /tags/ipp-ps2-20190404/tools/fixburntool	(revision 40762)
@@ -48,4 +48,5 @@
         run(command => $command, verbose => $verbose);
     unless ($success) {
+	print "error_code: $error_code\n";
         $error_code = (($error_code >> 8) or $PS_EXIT_PROG_ERROR);
         carp("Unable to perform $command: $error_code");
