IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40835


Ignore:
Timestamp:
Jul 19, 2019, 10:55:35 AM (7 years ago)
Author:
tdeboer
Message:

added explicit warning and exposure name when raw exp not downloaded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/night_report.pl

    r40831 r40835  
    140140    $summitPending = 0;
    141141
    142 #   my $query = "SELECT exp_name, exp_type, fault, state, count(*)";
    143142    my $query = "SELECT exp_type, fault, state, count(*)";
    144143    $query .= " FROM summitExp";
     
    149148    $query .= " GROUP BY exp_type, fault, state";
    150149
    151 #    print "$query\n";
    152 #    die;
    153 
    154150    my $result = &mysql_select ($query);
    155151
     
    164160        }
    165161    }
    166     if ($summitSkipped || $summitPending) { print "*** WARNING: $summitSkipped skipped rawExp, $summitPending incomplete rawExp ***\n\n"; } else { if ($verbose) { print "\n"; }}
     162    if ($summitSkipped || $summitPending) {
     163        print "*** WARNING: $summitSkipped skipped rawExp, $summitPending incomplete rawExp ***\n\n";
     164
     165        my $query = "SELECT summitExp.exp_name,exp_type, fault, state";
     166        $query .= " FROM summitExp";
     167        $query .= " LEFT JOIN pzDownloadExp USING (summit_id)";
     168        $query .= " WHERE dateobs like '$date%'";
     169        $query .= " AND (state like 'new' or state IS NULL)";
     170        $query .= " AND fault != 1042";
     171
     172        my $result = &mysql_select ($query);
     173        printf "%12s %8s %15s %6s\n", "exp_name", "exp_type", "fault", "state";
     174        while (@row = $result->fetchrow_array()) {
     175            if ($row[3] eq "") { $row[3] = "NULL"; }
     176            printf "%12s %8s %15s %6s\n", $row[0], $row[1], $row[2], $row[3];
     177        }
     178    }
     179    print "\n";
    167180}
    168181
Note: See TracChangeset for help on using the changeset viewer.