IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 11, 2010, 11:11:47 AM (16 years ago)
Author:
bills
Message:

add -destreaked as paramter to -definebyquery to block queing of addRuns
until the camera run has had magic applied.
Remove -all as an option because it is "TOO DANGEROUS"

File:
1 edited

Legend:

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

    r25935 r26911  
    101101    PXOPT_COPY_STR(config->args, where,  "-reduction", "camRun.reduction", "==");
    102102
    103     if (!psListLength(where->list) &&
    104         !psMetadataLookupBool(NULL, config->args, "-all")) {
     103    if (!psListLength(where->list)) {
    105104        psFree(where);
    106105        psError(PXTOOLS_ERR_DATA, false, "search parameters are required");
     
    115114    PXOPT_LOOKUP_STR(note,        config->args, "-set_note", false, false);
    116115    PXOPT_LOOKUP_BOOL(image_only, config->args, "-image_only", false);
     116    PXOPT_LOOKUP_BOOL(destreaked, config->args, "-destreaked", false);
    117117    PXOPT_LOOKUP_BOOL(pretend,    config->args, "-pretend", false);
    118118    PXOPT_LOOKUP_BOOL(simple,     config->args, "-simple", false);
     
    133133    }
    134134    psFree(where);
     135
     136    if (destreaked) {
     137        psStringAppend(&query, " AND (camRun.magicked > 0)");
     138    }
    135139
    136140    if (!p_psDBRunQuery(config->dbh, query)) {
Note: See TracChangeset for help on using the changeset viewer.