IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 11, 2013, 2:03:24 PM (13 years ago)
Author:
bills
Message:

add username, proj_id, and registered to table pstampRequest

File:
1 edited

Legend:

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

    r34123 r35295  
    287287    PXOPT_LOOKUP_S64(ds_id,       config->args, "-ds_id", false, false);
    288288
     289    PXOPT_LOOKUP_STR(username,    config->args, "-username",  false, false);
     290    PXOPT_LOOKUP_S64(proj_id,     config->args, "-proj_id", false, false);
     291
     292    psTime *now = psTimeGetNow(PS_TIME_TAI);
     293
    289294    if (!pstampRequestInsert(config->dbh,
    290295        0,      // req_id
     
    297302        uri,
    298303        NULL,   // outdir
    299         NULL,   // timestamp
     304        username,
     305        proj_id,
     306        now,    // registered
     307        now,    // timestamp
    300308        0       // fault
    301309        )) {
     
    567575    PXOPT_LOOKUP_STR(label,      config->args, "-set_label",      false, false);
    568576    PXOPT_LOOKUP_STR(outProduct, config->args, "-set_outProduct", false, false);
    569     PXOPT_LOOKUP_S16(fault,      config->args, "-set_fault",          false, false);
     577    PXOPT_LOOKUP_S16(fault,      config->args, "-set_fault",      false, false);
    570578    PXOPT_LOOKUP_STR(uri,        config->args, "-set_uri",        false, false);
    571     PXOPT_LOOKUP_STR(outdir,     config->args, "-set_outdir",        false, false);
     579    PXOPT_LOOKUP_STR(outdir,     config->args, "-set_outdir",     false, false);
    572580    PXOPT_LOOKUP_STR(name,       config->args, "-set_name",       false, false);
     581    PXOPT_LOOKUP_STR(username,   config->args, "-set_username",   false, false);
    573582    PXOPT_LOOKUP_STR(reqType,    config->args, "-set_reqType",    false, false);
    574     PXOPT_LOOKUP_BOOL(clearfault,config->args, "-clearfault",    false);
    575 
    576     if (!state && !label && !outProduct && !fault && !uri && !outdir && !name && !reqType && !clearfault) {
     583    PXOPT_LOOKUP_BOOL(clearfault,config->args, "-clearfault",     false);
     584
     585    if (!state && !label && !outProduct && !fault && !uri && !outdir && !name && !username && !reqType && !clearfault) {
    577586        psError(PS_ERR_UNKNOWN, true, "at least one set option is required");
    578587        return false;
Note: See TracChangeset for help on using the changeset viewer.