IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2010, 9:31:50 AM (16 years ago)
Author:
eugene
Message:

updates from trunk

Location:
branches/eam_branches/ipp-20100621/ippTools/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20100621/ippTools/src

    • Property svn:ignore
      •  

        old new  
        3939warptool
        4040staticskytool
        41 
         41bgtool
        4242diffphottool
  • branches/eam_branches/ipp-20100621/ippTools/src/diffphottool.c

    r28439 r28794  
    177177                                                  set_reduction ? set_reduction : reduction,
    178178                                                  registered,
    179                                                   set_note ? set_note : note);
     179                                                  set_note ? set_note : note, 0);
    180180        if (!diffPhotRunInsertObject(config->dbh, run)) {
    181181            psError(psErrorCodeLast(), false, "database error");
     
    430430        psMetadata *row = output->data[i]; // Row of interest
    431431        psS64 diff_phot_id = psMetadataLookupS64(NULL, row, "diff_phot_id");
    432 
    433         const char *query = "UPDATE diffPhotRun SET state = 'full' WHERE diff_phot_id = %" PRId64;
    434         if (!p_psDBRunQueryF(config->dbh, query, diff_phot_id)) {
     432        psS64 magicked = psMetadataLookupS64(NULL, row, "magicked");
     433
     434        const char *query = "UPDATE diffPhotRun SET state = 'full', magicked = %" PRId64
     435            " WHERE diff_phot_id = %" PRId64;
     436        if (!p_psDBRunQueryF(config->dbh, query, magicked, diff_phot_id)) {
    435437            psError(psErrorCodeLast(), false,
    436438                    "failed to change state for diff_phot_id %" PRId64, diff_phot_id);
Note: See TracChangeset for help on using the changeset viewer.