IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 30368


Ignore:
Timestamp:
Jan 25, 2011, 2:43:40 PM (15 years ago)
Author:
heather
Message:

fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/heather/expbot.pl

    r30359 r30368  
    141141print `date`;
    142142
    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;";
     143my $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;";
    144144my $dist1 = $db->selectall_arrayref($dist1q) ||
    145145    die "Unable to execute SQL: $DBI::errstr\n";
     
    173173
    174174print `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;";
     175my $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;";
    176176my $dist3 = $db->selectall_arrayref($dist3q) ||
    177177    die "Unable to execute SQL: $DBI::errstr\n";
Note: See TracChangeset for help on using the changeset viewer.