IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 15, 2013, 1:29:16 PM (13 years ago)
Author:
bills
Message:

add state = 'skycal' to stages supported by disttool

File:
1 edited

Legend:

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

    r35193 r35955  
    375375        }
    376376        if (dist_group) {
    377             psStringAppend(&query, " AND (sticskyRun.dist_group = '%s')", dist_group);
     377            psStringAppend(&query, " AND (staticskyRun.dist_group = '%s')", dist_group);
    378378        }
    379379        // (static)sky stage doesn't require magic
     380        magic = false;
     381    } else if (!strcmp(stage, "skycal")) {
     382        query = pxDataGet("disttool_definebyquery_skycal.sql");
     383        if (!query) {
     384            psError(PXTOOLS_ERR_SYS, false, "failed to retreive SQL statement");
     385            psFree(where);
     386            return false;
     387        }
     388
     389        if (label) {
     390            psStringAppend(&query, " AND (skycalRun.label = '%s')", label);
     391        }
     392        if (dist_group) {
     393            psStringAppend(&query, " AND (skycalRun.dist_group = '%s')", dist_group);
     394        }
     395        // skycal stage doesn't require magic
    380396        magic = false;
    381397    } else if (!strcmp(stage, "SSdiff")) {
Note: See TracChangeset for help on using the changeset viewer.