IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2010, 5:02:11 PM (16 years ago)
Author:
Paul Price
Message:

Additional search options for pubtool -definerun. Support publishing data in cleaned state (detections should still be there).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/pubtool.c

    r27071 r28319  
    157157    // optional
    158158    PXOPT_COPY_S64(config->args, where, "-client_id", "client_id", "==");
    159     pxAddLabelSearchArgs(config, where, "-label", "label", "=="); // define using newExp label
     159    pxAddLabelSearchArgs(config, where, "-label", "label", "==");
     160    pxAddLabelSearchArgs(config, where, "-data_group", "data_group", "==");
     161    PXOPT_COPY_TIME(config->args, where, "-dateobs_begin", "rawExp.dateobs", ">=");
     162    PXOPT_COPY_TIME(config->args, where, "-dateobs_end", "rawExp.dateobs", "<=");
     163    PXOPT_COPY_STR(config->args, where, "-filter", "rawExp.filter", "LIKE");
     164    PXOPT_COPY_STR(config->args, where, "-obs_mode", "rawExp.obs_mode", "LIKE");
     165
     166    PXOPT_LOOKUP_BOOL(rerun, config->args, "-rerun", false);
    160167
    161168    psString query = pxDataGet("pubtool_definerun.sql"); // Query to run
     
    164171        psFree(where);
    165172        return false;
     173    }
     174
     175    if (!rerun) {
     176        psStringAppend(&query, "WHERE publishRun.client_id IS NULL");
    166177    }
    167178
     
    241252    PXOPT_COPY_STR(config->args, where, "-stage", "publishClient.stage", "==");
    242253    PXOPT_COPY_STR(config->args, where, "-comment", "publishClient.comment", "LIKE");
    243     PXOPT_COPY_STR(config->args, where, "-label", "publishRun.label", "==");
     254    pxAddLabelSearchArgs(config, where, "-label", "label", "==");
    244255
    245256    // optional
Note: See TracChangeset for help on using the changeset viewer.