IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 8, 2009, 5:09:53 PM (17 years ago)
Author:
eugene
Message:

updates to the addstar stage; modify flatcorr to interact correctly with the addstar stage

File:
1 edited

Legend:

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

    r25789 r25816  
    2929#include "pxadd.h"
    3030
    31 bool pxaddRunSetState(pxConfig *config, psS64 add_id, const char *state, psS64 magicked)
     31bool pxaddRunSetState(pxConfig *config, psS64 add_id, const char *state)
    3232{
    3333    PS_ASSERT_PTR_NON_NULL(config, false);
     
    4141    }
    4242
    43     char *query = "UPDATE addRun SET state = '%s', magicked = %" PRId64 " WHERE add_id = %" PRId64;
    44     if (!p_psDBRunQueryF(config->dbh, query, state, magicked, add_id)) {
    45         psError(PS_ERR_UNKNOWN, false,
    46                 "failed to change state for add_id %" PRId64, add_id);
     43    char *query = "UPDATE addRun SET state = '%s' WHERE add_id = %" PRId64;
     44    if (!p_psDBRunQueryF(config->dbh, query, state, add_id)) {
     45        psError(PS_ERR_UNKNOWN, false, "failed to change state for add_id %" PRId64, add_id);
    4746        return false;
    4847    }
     
    123122}
    124123
    125 // Need to think more about this to see what we want it to do. BROKEN
    126124bool pxaddQueueByCamID(pxConfig *config,
    127125                       psS64 cam_id,
    128126                       char *workdir,
     127                       char *reduction,
    129128                       char *label,
    130                        char *recipe,
    131                        char *dvodb)
     129                       char *dvodb,
     130                       bool image_only)
    132131{
    133132    PS_ASSERT_PTR_NON_NULL(config, false);
     
    149148    if (!p_psDBRunQueryF(config->dbh, query,
    150149                         "new", // state
    151                          workdir  ? workdir  : "NULL",
     150                         workdir  ? workdir   : "NULL",
    152151                         "dirty", //workdir_state
    153                          label    ? label    : "NULL",
    154                          dvodb    ? dvodb    : "NULL",
    155                          (long long)cam_id
     152                         reduction? reduction : "NULL",
     153                         label    ? label     : "NULL",
     154                         dvodb    ? dvodb     : "NULL",
     155                         image_only,
     156                         (long long) cam_id
    156157    )) {
    157158        psError(PS_ERR_UNKNOWN, false, "database error");
Note: See TracChangeset for help on using the changeset viewer.