IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 13, 2009, 2:03:25 PM (16 years ago)
Author:
Paul Price
Message:

Need to limit the selection of warps so query doesn't take forever.

File:
1 edited

Legend:

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

    r25851 r26138  
    9595        MODECASE(DIFFTOOL_MODE_IMPORTRUN,             importrunMode);
    9696        MODECASE(DIFFTOOL_MODE_TOCLEANEDSKYFILE,   tocleanedskyfileMode);
    97         MODECASE(DIFFTOOL_MODE_TOPURGEDSKYFILE,    topurgedskyfileMode);
    98         MODECASE(DIFFTOOL_MODE_TOSCRUBBEDSKYFILE,  toscrubbedskyfileMode);
     97        MODECASE(DIFFTOOL_MODE_TOPURGEDSKYFILE,    topurgedskyfileMode);
     98        MODECASE(DIFFTOOL_MODE_TOSCRUBBEDSKYFILE,  toscrubbedskyfileMode);
    9999
    100100        default:
     
    210210    PXOPT_LOOKUP_STR(state, config->args, "-state", true, false);
    211211    PXOPT_LOOKUP_STR(label, config->args, "-label", false, false);
    212    
     212
    213213    // Copy of my hacky work around from stacktool.c
    214214    if ((state)&&(diff_id)) {
     
    914914    if (magicked) {
    915915      char *query = "UPDATE diffRun SET state = '%s', magicked = %" PRId64 " WHERE diff_id = %"PRId64;
    916      
     916
    917917      if (!p_psDBRunQueryF(config->dbh, query, state, magicked, diff_id)) {
    918918        psError(PS_ERR_UNKNOWN, false,
     
    923923    else {
    924924      char *query = "UPDATE diffRun SET state = '%s' WHERE diff_id = %"PRId64;
    925      
     925
    926926      if (!p_psDBRunQueryF(config->dbh, query, state, diff_id)) {
    927927        psError(PS_ERR_UNKNOWN, false,
     
    930930      }
    931931    }
    932    
     932
    933933    return true;
    934934}
     
    948948  if (!p_psDBRunQueryF(config->dbh,query,state,label)) {
    949949    psError(PS_ERR_UNKNOWN, false,
    950             "failed to change state for label %s", label);
     950            "failed to change state for label %s", label);
    951951    return(false);
    952952  }
     
    12211221    }
    12221222
    1223     if (!p_psDBRunQueryF(config->dbh, query, warpQuery, expQuery, diffQuery)) {
     1223    if (!p_psDBRunQueryF(config->dbh, query, warpQuery, warpQuery, expQuery, diffQuery)) {
    12241224        psError(PS_ERR_UNKNOWN, false, "database error");
    12251225        psFree(query);
     
    20622062    return(false);
    20632063  }
    2064  
     2064
    20652065  return(true);
    20662066}
Note: See TracChangeset for help on using the changeset viewer.