IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 16, 2007, 12:17:28 PM (19 years ago)
Author:
eugene
Message:

add -unlimit option to list all matches

File:
1 edited

Legend:

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

    r14370 r15857  
    189189    }
    190190
    191     // XXX this needs to be more controlled: we should specifically choose the
    192     // single detrend image which matches all criteria and has the latest
     191    // we choose the single detrend image which matches all criteria and has the latest
    193192    // insertion date
    194     psStringAppend(&query, " ORDER BY registered DESC LIMIT 1");
     193
     194    // unless explicitly specified by the user, list all possible matches
     195    if (!psMetadataLookupBool(NULL, config->args, "-unlimit")) {
     196        psStringAppend(&query, " ORDER BY registered DESC LIMIT 1");
     197    }
    195198
    196199    if (!p_psDBRunQuery(config->dbh, query)) {
Note: See TracChangeset for help on using the changeset viewer.