IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2008, 2:58:42 PM (17 years ago)
Author:
bills
Message:

require magic_ds_id for -getskycells. changes in comments

File:
1 edited

Legend:

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

    r20764 r20781  
    591591static bool getskycellsMode(pxConfig *config)
    592592{
     593    // required
     594    PXOPT_LOOKUP_S64(magic_ds_id, config->args, "-magic_ds_id", true, false);
     595
    593596    psMetadata *where = psMetadataAlloc();
    594     PXOPT_COPY_S64(config->args, where, "-magic_ds_id", "magicDSRun.magic_ds_id", "==");
    595     PXOPT_COPY_STR(config->args, where, "-class_id", "warpSkyCellMap.class_id", "==");
    596     PXOPT_COPY_STR(config->args, where, "-skycell_id", "warpSkyCellMap.skycell_id", "==");
     597    PXOPT_COPY_STR(config->args, where, "-class_id",    "warpSkyCellMap.class_id", "==");
     598    PXOPT_COPY_STR(config->args, where, "-skycell_id",  "warpSkyCellMap.skycell_id", "==");
    597599
    598600    PXOPT_LOOKUP_BOOL(simple, config->args, "-simple", false);
     
    611613    psFree(where);
    612614
    613     if (!p_psDBRunQuery(config->dbh, query)) {
     615    if (!p_psDBRunQuery(config->dbh, query, magic_ds_id)) {
    614616        psError(PS_ERR_UNKNOWN, false, "database error");
    615617        psFree(query);
Note: See TracChangeset for help on using the changeset viewer.