IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2009, 5:34:32 PM (17 years ago)
Author:
eugene
Message:

add label test to flatcorr pendingprocess; fix code on addprocess

File:
1 edited

Legend:

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

    r23828 r24140  
    535535    PXOPT_LOOKUP_BOOL(limit,   config->args, "-limit",   false);
    536536
     537    psMetadata *where = psMetadataAlloc();
     538    pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     539
    537540    psString query = pxDataGet("flatcorr_pendingprocess.sql");
    538541    if (!query) {
     
    540543        return false;
    541544    }
     545
     546    if (where && psListLength(where->list)) {
     547        psString whereClause = psDBGenerateWhereConditionSQL(where, NULL);
     548        psStringAppend(&query, " AND %s", whereClause);
     549        psFree(whereClause);
     550    }
     551    psFree(where);
    542552
    543553    // treat limit == 0 as "no limit"
Note: See TracChangeset for help on using the changeset viewer.