IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 22, 2010, 1:58:02 PM (16 years ago)
Author:
bills
Message:

changes to support updating only a subset of the components of a run

File:
1 edited

Legend:

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

    r26981 r27391  
    290290
    291291    // pxUpdateRun gets parameters from config->args and runs the update query
    292     bool result = pxUpdateRun(config, where, &query, "addRun", false);
     292    bool result = pxUpdateRun(config, where, &query, "addRun", "add_id",
     293        "addProcessedExp", false);
    293294
    294295    psFree(query);
     
    296297
    297298    return result;
    298 
    299 
    300 #ifdef notdef
    301     PXOPT_LOOKUP_STR(state, config->args, "-set_state", false, false);
    302     PXOPT_LOOKUP_STR(label, config->args, "-set_label", false, false);
    303 
    304     if ((!state) && (!label)) {
    305         psError(PXTOOLS_ERR_CONFIG, false, "parameters are required");
    306         psFree(where);
    307         return false;
    308     }
    309 
    310     if (state) {
    311         // set addRun.state to state
    312         if (!pxaddRunSetStateByQuery(config, where, state)) {
    313             psFree(where);
    314             return false;
    315         }
    316     }
    317 
    318     if (label) {
    319         // set addRun.label to label
    320         if (!pxaddRunSetLabelByQuery(config, where, label)) {
    321             psFree(where);
    322             return false;
    323         }
    324     }
    325 
    326     psFree(where);
    327 
    328     return true;
    329 #endif
    330299}
    331300
Note: See TracChangeset for help on using the changeset viewer.