IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24858


Ignore:
Timestamp:
Jul 20, 2009, 10:16:44 AM (17 years ago)
Author:
eugene
Message:

add option to order by date

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r24733 r24858  
    331331    PXOPT_LOOKUP_BOOL(faulted, config->args, "-faulted", false);
    332332    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     333    PXOPT_LOOKUP_BOOL(ordered_by_date, config->args, "-ordered_by_date", false);
    333334
    334335    psString query = pxDataGet("regtool_processedimfile.sql");
     
    352353        // don't list faulted rows
    353354        psStringAppend(&query, " %s", "AND rawImfile.fault = 0");
     355    }
     356
     357    // add the ORDER BY statement if desired
     358    if (ordered_by_date) {
     359        psStringAppend(&query, " ORDER BY dateobs");
    354360    }
    355361
  • trunk/ippTools/src/regtoolConfig.c

    r24733 r24858  
    138138    ADD_OPT(Bool, processedimfileArgs, "-faulted",   "only return imfiles with a fault status set", false);
    139139    ADD_OPT(Bool, processedimfileArgs, "-simple",    "use the simple output format",          false);
     140    ADD_OPT(Bool, processedimfileArgs, "-ordered_by_date", "force output to be in DATE order", false);
    140141
    141142    // -revertprocessedimfile
Note: See TracChangeset for help on using the changeset viewer.