IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 11, 2026, 3:07:05 PM (3 months ago)
Author:
eugene
Message:

only allow pxadmin to delete databases named "test" or "simtest"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-pstamp-20260421/ippTools/src/difftool.c

    r41681 r43013  
    12501250  PXOPT_COPY_STR(config->args, where, "-data_group", "warpRun.data_group", "==");
    12511251  PXOPT_COPY_STR(config->args, where, "-skycell_id", "warpSkyfile.skycell_id", "==");
    1252   PXOPT_COPY_F32(config->args, where,  "-good_frac", "warpSkyfile.good_frac", ">=");
     1252  PXOPT_COPY_F32(config->args, where, "-good_frac", "warpSkyfile.good_frac", ">=");
    12531253  PXOPT_COPY_STR(config->args, where, "-stack_label", "stackRun.label", "==");
    12541254  PXOPT_COPY_STR(config->args, where, "-stack_data_group", "stackRun.data_group", "==");
     
    13241324
    13251325    // This is just a simple query, so we don't need to do a transaction
    1326     if (!p_psDBRunQueryF(config->dbh, query, whereClauseString, diffWhereClause,joinWhereClause)) {
     1326    if (!p_psDBRunQueryF(config->dbh, query, whereClauseString, diffWhereClause, joinWhereClause)) {
    13271327      psError(PS_ERR_UNKNOWN, false, "database error");
    13281328      psFree(query);
     
    13341334    psFree(joinWhereClause);
    13351335   
    1336   }
    1337   else {
     1336  } else {
    13381337    // Don't queue things that already have diffs.
    13391338    if (! (reRun || newTemplates) ) {
Note: See TracChangeset for help on using the changeset viewer.