Changeset 30368 for trunk/tools/heather/expbot.pl
- Timestamp:
- Jan 25, 2011, 2:43:40 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/tools/heather/expbot.pl (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/heather/expbot.pl
r30359 r30368 141 141 print `date`; 142 142 143 my $dist1q = "select exp_name, comment, rawExp.state, count(stage_id) from rawExp left join chipRun using (exp_id) left join camRun using (chip_id) left join distRun on cam_id = stage_id and stage = 'camera' where dateobs like '$date%' and exp_type = 'OBJECT' group by exp_name;";143 my $dist1q = "select exp_name, comment, rawExp.state, count(stage_id) from rawExp left join chipRun using (exp_id) left join distRun on chip_id = stage_id and stage = 'chip' where dateobs like '$date%' and exp_type = 'OBJECT' group by exp_name;"; 144 144 my $dist1 = $db->selectall_arrayref($dist1q) || 145 145 die "Unable to execute SQL: $DBI::errstr\n"; … … 173 173 174 174 print `date`; 175 my $dist3q = "select exp_name, comment, rawExp.state, count(stage_id) from rawExp left join chipRun using (exp_id) left join camRun using (chip_id) left join distRun on cam_id = stage_id and stage = 'camera' where dateobs like '$date%' and exp_type = 'OBJECT' group by exp_name;";175 my $dist3q = "select exp_name, comment, rawExp.state, count(stage_id) from rawExp left join chipRun using (exp_id) left join camRun using (chip_id) left join fakeRun using (cam_id) left join warpRun using (fake_id) left join distRun on warp_id = stage_id and stage = 'warp' where dateobs like '$date%' and exp_type = 'OBJECT' group by exp_name;"; 176 176 my $dist3 = $db->selectall_arrayref($dist3q) || 177 177 die "Unable to execute SQL: $DBI::errstr\n";
Note:
See TracChangeset
for help on using the changeset viewer.
