IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 15, 2010, 1:57:07 PM (16 years ago)
Author:
bills
Message:

implement ordering by Label.priority for camtool -processedexp
Needed to stop sharing the sql to implement this

File:
1 edited

Legend:

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

    r28274 r28339  
    292292    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
    293293
    294     psString query = pxDataGet("camtool_find_pendingexp.sql");
     294    psString query = pxDataGet("camtool_pendingexp.sql");
    295295    if (!query) {
    296296        psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
     
    305305    }
    306306    psFree(where);
     307
     308    psStringAppend(&query, "\nORDER BY priority DESC, cam_id");
    307309
    308310    // treat limit == 0 as "no limit"
     
    531533    PXOPT_COPY_S64(config->args, where, "-cam_id",   "camRun.cam_id",   "==");
    532534
    533     psString query = pxDataGet("camtool_find_pendingexp.sql");
     535    psString query = pxDataGet("camtool_addprocessedexp.sql");
    534536    if (!query) {
    535537        psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
Note: See TracChangeset for help on using the changeset viewer.