IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2010, 11:26:54 AM (16 years ago)
Author:
bills
Message:

in -updaterun dont' set stage to 'goto_cleaned' if it is already 'cleaned'

File:
1 edited

Legend:

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

    r27519 r27745  
    12251225    }
    12261226
     1227    psString stateCheck = NULL;
     1228    if (!strcmp(state, "goto_cleaned")) {
     1229        // science cleanup sets runs to goto_cleaned. Don't undo it if already cleaned
     1230        psStringAppend(&stateCheck, " AND magicDSRun.state != 'cleaned'");
     1231    }
     1232
     1233
    12271234    psString query = NULL;
    12281235    psStringAppend(&query, "UPDATE magicDSRun SET state = '%s' %s\n", state, extraSetStr ? extraSetStr : "");
     
    12381245    }
    12391246
     1247    if (stateCheck) {
     1248        psStringAppend(&query, stateCheck);
     1249    }
     1250    psFree(stateCheck);
    12401251    if (!p_psDBRunQuery(config->dbh, query)) {
    12411252        psError(PS_ERR_UNKNOWN, false,
Note: See TracChangeset for help on using the changeset viewer.