IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9973


Ignore:
Timestamp:
Nov 13, 2006, 5:52:58 PM (20 years ago)
Author:
jhoblitt
Message:

fix -seen search params

Location:
trunk/ippTools/src
Files:
2 edited

Legend:

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

    r9967 r9973  
    9191
    9292    if (config->where) {
    93         psString whereClause = psDBGenerateWhereConditionSQL(config->where, "newExp");
     93        psString whereClause = psDBGenerateWhereConditionSQL(config->where, "summitExp");
    9494        psStringAppend(&query, " AND %s", whereClause);
    9595        psFree(whereClause);
  • trunk/ippTools/src/pztoolConfig.c

    r9967 r9973  
    148148
    149149    addWhereStr(exp_tag);
     150    addWhereStr(telescope);
     151    // convert '-inst' to 'camera'
     152    {
     153        psString str = NULL;
     154        bool status = false;
     155        if ((str = psMetadataLookupStr(&status, config->args, "-inst"))) {
     156            if (!psMetadataAddStr(config->where, PS_LIST_TAIL, "camera", 0, "==", str)) {
     157                psError(PS_ERR_UNKNOWN, false, "failed to add item camera");
     158                goto FAIL;
     159            }
     160        }
     161    }
     162    addWhereStr(exp_type);
    150163    addWhereStr(class);
    151164    addWhereStr(class_id);
Note: See TracChangeset for help on using the changeset viewer.