IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16334


Ignore:
Timestamp:
Feb 5, 2008, 6:44:48 PM (18 years ago)
Author:
jhoblitt
Message:

add pztool -code

Location:
trunk/ippTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pztool_find_completed_exp.sql

    r14600 r16334  
    2828    HAVING
    2929        COUNT(pzDoneImfile.exp_name) = summitExp.imfiles
     30        AND SUM(pzDoneImfile.fault) = 0
    3031    ) as Foo
  • trunk/ippTools/src/pztool.c

    r16170 r16334  
    344344    PXOPT_LOOKUP_STR(uri, config->args, "-uri", true, false);
    345345
     346    // default values
     347    PXOPT_LOOKUP_S16(code, config->args, "-code", false, false);
     348
    346349    // need to know exp_name, camera, telescope, class, class_id (to find the
    347350    // pzPendingImfile entry and the URI for the newImfile entry.
     
    360363            "       pzPendingImfile.*,"
    361364            "       '%s'" // uri of downloaded file
     365            "       '%d'" // fault code
    362366            "   FROM pzPendingImfile"
    363367            "   WHERE"
     
    368372            "       AND pzPendingImfile.class_id = '%s'";
    369373
    370         if (!p_psDBRunQuery(config->dbh, query, uri, exp_name, camera, telescope, class, class_id)) {
     374        if (!p_psDBRunQuery(config->dbh, query, uri, exp_name, camera, telescope, class, class_id, code)) {
    371375            // rollback
    372376            if (!psDBRollback(config->dbh)) {
  • trunk/ippTools/src/pztoolConfig.c

    r16170 r16334  
    122122    psMetadataAddStr(copydoneArgs, PS_LIST_TAIL, "-end_stage",  0,
    123123        "define the end goal processing step", NULL);
     124    psMetadataAddS16(copydoneArgs, PS_LIST_TAIL, "-code",  0,
     125            "set fault code", 0);
    124126
    125127    psMetadata *argSets = psMetadataAlloc();
Note: See TracChangeset for help on using the changeset viewer.