- Timestamp:
- Jun 18, 2019, 2:00:16 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/ippScripts/scripts/night_report.pl (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippScripts/scripts/night_report.pl
r40793 r40794 776 776 $query .= " SELECT dateobs,comment,substr(comment, 1, position(' ' in comment)) AS chunk,count(distinct(comment)) AS Nquad_firstvisit"; 777 777 $query .= " FROM rawExp"; 778 $query .= " WHERE dateobs LIKE '$date%' ";778 $query .= " WHERE dateobs LIKE '$date%' AND exp_id > $refExpID"; 779 779 $query .= " AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%') AND obs_mode NOT LIKE 'ENGINEERING'"; 780 780 $query .= " AND comment LIKE '%visit 1%'"; … … 786 786 $query .= " (SELECT substr(comment, 1, position(' ' in comment)) AS chunk,count(distinct(comment)) AS Nvisits"; 787 787 $query .= " FROM rawExp"; 788 $query .= " WHERE dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')";788 $query .= " WHERE dateobs LIKE '$date%' AND exp_id > $refExpID AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')"; 789 789 $query .= " AND obs_mode NOT LIKE 'ENGINEERING' AND comment LIKE '%visit%'"; 790 790 $query .= " GROUP BY object, filter, chunk"; … … 808 808 my $query2 .= " SELECT warp_id FROM "; 809 809 $query2 .= " warpRun 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)"; 810 $query2 .= " WHERE rawExp.dateobs LIKE '$date%' AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')";810 $query2 .= " WHERE rawExp.dateobs LIKE '$date%' AND exp_id > $refExpID AND (obs_mode LIKE '%SS%' OR obs_mode LIKE '%BRIGHT%')"; 811 811 $query2 .= " AND substr(comment, 1, position(' ' in comment)) LIKE '$chunkname%'"; 812 812 my $result2 = &mysql_select ($query2); … … 840 840 } 841 841 842 842 843 exit 0; 843 844
Note:
See TracChangeset
for help on using the changeset viewer.
