IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 20, 2009, 11:08:43 AM (16 years ago)
Author:
bills
Message:

accept dist_group as paramter to updateinterest
accept -stage all as paramter to defineinterest (use with care)

File:
1 edited

Legend:

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

    r26193 r26210  
    15511551    PXOPT_COPY_STR(config->args, where, "-dist_group", "dist_group", "LIKE");
    15521552    PXOPT_COPY_STR(config->args, where, "-filter", "filter", "LIKE");
    1553     PXOPT_COPY_STR(config->args, where, "-stage", "stage", "==");
     1553    // if stage is all don't add it to the query (match all stages)
     1554    if (stage && strcmp(stage, "all")) {
     1555        PXOPT_COPY_STR(config->args, where, "-stage", "stage", "==");
     1556    }
    15541557
    15551558    psString query = pxDataGet("disttool_defineinterest.sql");
     
    16131616    PXOPT_COPY_STR(config->args, where, "-dest_name", "rcDestination.name", "LIKE");
    16141617    PXOPT_COPY_STR(config->args, where, "-filter", "filter", "LIKE");
     1618    PXOPT_COPY_STR(config->args, where, "-dist_group", "dist_group", "LIKE");
    16151619
    16161620    PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false);
Note: See TracChangeset for help on using the changeset viewer.