IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 40428 for trunk/ippMonitor


Ignore:
Timestamp:
May 15, 2018, 9:58:14 AM (8 years ago)
Author:
eugene
Message:

add column of exposures which have been dropped or manually excluded

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippMonitor/raw/czartool_labels_old.php

    r40358 r40428  
    349349    echo $table;
    350350    echo "<tr>";
    351     createTableTitle("Status of last night's data", 3);
     351    createTableTitle("Status of last night's data", 4);
    352352    echo "<tr>";
    353353    createTableColumnHeader("Exposure type");
    354     createTableColumnHeader("At summit");
     354    createTableColumnHeader("At summit (OK)");
    355355    createTableColumnHeader("Registered at MHPCC");
     356    createTableColumnHeader("At summit (Dropped)");
    356357
    357358    $msg = "No science images taken since $date";
     
    360361    while ($qry->fetchInto($expType)) {
    361362
     363#       $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]' and status != 'drop'";
    362364        $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]'";
    363365        $qry2 = $projectdb->query($sql);
    364366        $qry2->fetchInto($summit);
     367
     368#       $sql = "SELECT COUNT(*) FROM summitExp JOIN rawExp ON summitExp.exp_name = rawExp.exp_name WHERE summitExp.dateobs > '$date' AND summitExp.exp_type = '$expType[0]' AND summitExp.status != 'drop'";
    365369        $sql = "SELECT COUNT(*) FROM summitExp JOIN rawExp ON summitExp.exp_name = rawExp.exp_name WHERE summitExp.dateobs > '$date' AND summitExp.exp_type = '$expType[0]'";
    366370        $qry2 = $projectdb->query($sql);
    367371        $qry2->fetchInto($mhpcc);
    368372
     373        $sql = "SELECT COUNT(*) FROM summitExp WHERE dateobs > '$date' AND exp_type = '$expType[0]'";
     374        $qry2 = $projectdb->query($sql);
     375        $qry2->fetchInto($dropped);
     376
    369377        echo "<tr>";
    370378
     
    374382        echo "<td>$expType[0]</td>";
    375383        echo "<td>$summit[0]</td>";
    376        
    377384        createFormattedTableCell("", "", $mhpcc[0], $error, 0);
     385        echo "<td>$dropped[0]</td>";
    378386
    379387        echo "</tr>";
Note: See TracChangeset for help on using the changeset viewer.