IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 6, 2008, 3:16:02 PM (18 years ago)
Author:
jhoblitt
Message:

constrain copydoneCompleteExp() to a single exposures

File:
1 edited

Legend:

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

    r16588 r17550  
    4242static bool revertcopiedMode(pxConfig *config);
    4343
    44 static bool copydoneCompleteExp(pxConfig *config);
     44static bool copydoneCompleteExp(pxConfig *config, const char *exp_name, const char *camera, const char *telescope);
    4545static psArray *pzGetPendingCameras(pxConfig *config);
    4646static psArray *pzArrayZip(psArray *arraySet, psS64 limit);
     
    409409    }
    410410
    411     if (!copydoneCompleteExp(config)) {
     411    if (!copydoneCompleteExp(config, exp_name, camera, telescope)) {
    412412        // rollback
    413413        if (!psDBRollback(config->dbh)) {
     
    431431}
    432432
    433 static bool copydoneCompleteExp(pxConfig *config)
     433static bool copydoneCompleteExp(pxConfig *config, const char *exp_name, const char *camera, const char *telescope)
    434434{
    435435    PS_ASSERT_PTR_NON_NULL(config, false);
     
    455455        return false;
    456456    }
     457
     458    psStringAppend(&query, "WHERE exp_name = '%s' AND telescope = '%s' AND camera = '%s'",
     459                          exp_name, telescope, camera);
    457460
    458461    if (!p_psDBRunQuery(config->dbh, query)) {
Note: See TracChangeset for help on using the changeset viewer.