IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2011, 11:34:14 AM (15 years ago)
Author:
heather
Message:

this records which camRun smfs are ingested (0 = uncensored, # = magicked, but
it foudn the uncensored one), and fixes reverts for all

Location:
branches/haf_add201112/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/haf_add201112/ippTools/src/addtool.c

    r33023 r33027  
    825825    PXOPT_LOOKUP_STR(minidvodb_name, config->args, "-minidvodb_name", false, false);
    826826    PXOPT_LOOKUP_S16(fault,         config->args, "-fault", false, false);
    827 
     827    PXOPT_LOOKUP_S64(stage_extra1, config->args, "-stage_extra1", false, false);
    828828    // generate restrictions
    829829    psMetadata *where = psMetadataAlloc();
     
    903903      }
    904904    }
    905 
     905    //if there is a stage_extra1, set it in addRun (it's not known until it is processed)
     906    if (stage_extra1) {
     907      psString setExtra = NULL;
     908      psStringAppend (&setExtra, "UPDATE addRun set stage_extra1 = %" PRId64, stage_extra1);
     909      psStringAppend (&setExtra, " where add_id = %" PRId64, row->add_id);
     910
     911      if (!p_psDBRunQuery(config->dbh, setExtra)) {
     912        if (!psDBRollback(config->dbh)) {
     913          psError(PS_ERR_UNKNOWN, false, "database error");
     914        }
     915        psError(PS_ERR_UNKNOWN, false, "database error");
     916
     917        return false;
     918      }
     919    }
    906920
    907921
     
    10501064    PXOPT_COPY_S64(config->args, where, "-add_id",    "addRun.add_id",         "==");
    10511065    PXOPT_COPY_S64(config->args, where, "-stage_id",    "addRun.stage_id",         "==");
    1052     PXOPT_LOOKUP_STR(stage,       config->args, "-stage", false, false);
     1066    PXOPT_LOOKUP_STR(stage,       config->args, "-stage", true, false);
    10531067    pxcamGetSearchArgs (config, where);
    10541068    pxAddLabelSearchArgs (config, where, "-label",    "addRun.label",     "==");
  • branches/haf_add201112/ippTools/src/addtoolConfig.c

    r33003 r33027  
    115115    psMetadataAddF32(addprocessedexpArgs, PS_LIST_TAIL, "-dtime_addstar", 0, "define elapsed time for DVO insertion (seconds)", NAN);
    116116    psMetadataAddS16(addprocessedexpArgs, PS_LIST_TAIL, "-fault",  0,            "set fault code", 0);
     117psMetadataAddS64(addprocessedexpArgs, PS_LIST_TAIL, "-stage_extra1",  0,            "set stage_extra1", 0);
     118
    117119
    118120    // -processedexp
Note: See TracChangeset for help on using the changeset viewer.