IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 14, 2007, 2:30:36 PM (18 years ago)
Author:
jhoblitt
Message:

implement dettool -addcorrectimfile

File:
1 edited

Legend:

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

    r15828 r15830  
    280280    return true;
    281281}
     282
     283bool addcorrectimfileMode(pxConfig *config)
     284{
     285    PS_ASSERT_PTR_NON_NULL(config, false);
     286
     287    // insert the row into detRegisterImfile
     288    if (!register_detrend_imfileMode(config)) {
     289        return false;
     290    }
     291   
     292    // automatically stop completed 'correct' detRuns
     293    psString query = pxDataGet("dettool_stop_completed_correct_runs.sql");
     294    if (!query) {
     295        psError(PXTOOLS_ERR_DATA, false, "failed to retreive SQL statement");
     296        return false;
     297    }
     298
     299    if (!p_psDBRunQuery(config->dbh, query)) {
     300        psError(PS_ERR_UNKNOWN, false, "database error");
     301        psFree(query);
     302        return false;
     303    }
     304    psFree(query);
     305
     306    return true;
     307}
Note: See TracChangeset for help on using the changeset viewer.