IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38089


Ignore:
Timestamp:
Apr 6, 2015, 3:15:58 PM (11 years ago)
Author:
bills
Message:

add informoation about the last registered exposure

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/checkexp

    r29253 r38089  
    5353        summitExp.fault AS summit_fault,
    5454        pzDownloadExp.state AS download_state, count(pzDownloadImfile.class_id) AS download_count,
    55         newExp.state AS newExp_state, newExp.exp_id
     55        newExp.state AS newExp_state, newExp.exp_id,
     56        rawExp.state as rawExp_state
    5657        FROM summitExp LEFT JOIN pzDownloadExp USING(exp_name)
    5758            LEFT JOIN pzDownloadImfile USING(exp_name)
     
    8889my $first_exp_id;
    8990my $first_exp_name;
     91my $last_registered_exp_id = "";
     92my $last_registered_exp_name = "";
    9093while (my $se_ref = $se_stmt->fetchrow_hashref()) {
    9194    push @summit_exps, $se_ref;
     
    98101    my $imfiles = $se_ref->{imfiles};
    99102    my $dateobs = $se_ref->{dateobs};
     103    my $raw_state = $se_ref->{rawExp_state};
    100104    if ($summit_fault) {
    101105        push @summit_faults, $se_ref;
     
    115119            $last_new_exp_id = $exp_id;
    116120            $last_new_exp_name = $exp_name;
     121        }
     122        if ($raw_state and $raw_state eq 'full') {
     123            $last_registered_exp_id = $exp_id;
     124            $last_registered_exp_name = $exp_name;
    117125        }
    118126    }
     
    180188
    181189print "first exposure:  $first_exp_name $first_exp_id\n";
     190print "last registered: $last_registered_exp_name $last_registered_exp_id\n"
     191            if $last_registered_exp_id ne $last_exp_id;
    182192print "last copied:     $last_new_exp_name $last_new_exp_id\n"
    183193            if $last_new_exp_id ne $last_exp_id;
Note: See TracChangeset for help on using the changeset viewer.