IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36431 for trunk/ippTools


Ignore:
Timestamp:
Jan 8, 2014, 12:21:52 PM (13 years ago)
Author:
bills
Message:

order results of chiptool -pendingcleanuprun by Label.priority.

Location:
trunk/ippTools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/chiptool_pendingcleanuprun.sql

    r34766 r36431  
    44    rawExp.exp_tag,
    55    chipRun.state,
    6     chipRun.workdir
     6    chipRun.workdir,
     7    chipRun.label,
     8    IFNULL(Label.priority, 10000) AS priority
    79FROM chipRun
    810JOIN rawExp
    911USING (exp_id)
     12LEFT JOIN Label ON chipRun.label = Label.label
    1013WHERE
    1114    (chipRun.state = 'goto_cleaned' OR chipRun.state = 'goto_scrubbed' OR chipRun.state = 'goto_purged')
  • trunk/ippTools/src/chiptool.c

    r35789 r36431  
    12551255
    12561256    psMetadata *where = psMetadataAlloc();
    1257     pxAddLabelSearchArgs (config, where, "-label", "label", "==");
     1257    pxAddLabelSearchArgs (config, where, "-label", "chipRun.label", "==");
    12581258
    12591259    psString query = pxDataGet("chiptool_pendingcleanuprun.sql");
     
    12691269    }
    12701270    psFree(where);
     1271
     1272    psStringAppend(&query, "\nORDER BY priority DESC, chip_id");
    12711273
    12721274    // treat limit == 0 as "no limit"
Note: See TracChangeset for help on using the changeset viewer.