IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 16, 2006, 6:30:50 PM (19 years ago)
Author:
jhoblitt
Message:

add newExp.dateobs
change newExp.exp_tag to psU64

File:
1 edited

Legend:

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

    r9464 r10039  
    128128    }
    129129
    130     if (!newExpInsert(config->dbh, exp_tag, exp_id, camera, telescope, exp_type, imfiles)) {
     130    psTime *dateobs = NULL;
     131    {
     132        psString dateobsStr = psMetadataLookupStr(&status, config->args, "-dateobs");
     133        if (!status) {
     134            psError(PS_ERR_UNKNOWN, false, "failed to lookup value for -dateobs");
     135            return false;
     136        }
     137        dateobs = psTimeFromISO(dateobsStr, PS_TIME_UTC);
     138    }
     139
     140
     141    if (!newExpInsert(config->dbh,
     142                (psU64)atoll(exp_tag),
     143                exp_id,
     144                camera,
     145                telescope,
     146                dateobs,
     147                exp_type,
     148                imfiles
     149            )
     150        ) {
    131151        psError(PS_ERR_UNKNOWN, false, "database error");
    132152        return false;
Note: See TracChangeset for help on using the changeset viewer.