IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24438


Ignore:
Timestamp:
Jun 16, 2009, 2:24:25 PM (17 years ago)
Author:
Paul Price
Message:

Fixes to get workflow working.

Location:
branches/pap_mops/ippTools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippTools/share/pubtool_pending.sql

    r24428 r24438  
    11SELECT
    22    publishToDo.*
    3 FROM ((
     3FROM (
    44    SELECT
    55        publishRun.pub_id,
     
    1616        AND publishRun.state = 'new'
    1717        AND diffRun.state = 'full'
    18     ) AS publishDiffs UNION (
     18    UNION
    1919    SELECT
    2020        publishRun.pub_id,
     
    3030        AND publishRun.state ='new'
    3131        AND camRun.state = 'full'
    32     ) AS publishCams
    3332) AS publishToDo
    3433LEFT JOIN publishDone USING(pub_id)
  • branches/pap_mops/ippTools/src/pubtool.c

    r24436 r24438  
    132132    if (psListLength(where->list)) {
    133133        psString clause = psDBGenerateWhereConditionSQL(where, NULL);
    134         psStringAppend(&whereClause, " AND %s", clause);
     134        psStringAppend(&whereClause, "\n AND %s", clause);
    135135        psFree(clause);
    136136    }
     
    160160        psTrace("pubtool", PS_LOG_INFO, "No rows found");
    161161        psFree(output);
    162         if (!psDBRollback(config->dbh)) {
    163             psError(PS_ERR_UNKNOWN, false, "Database error");
    164         }
    165162        return true;
    166163    }
  • branches/pap_mops/ippTools/src/pubtoolConfig.c

    r24435 r24438  
    6868    psMetadata *addArgs = psMetadataAlloc();
    6969    psMetadataAddS64(addArgs, PS_LIST_TAIL, "-pub_id", 0, "define pub_id (required)", 0);
     70    psMetadataAddStr(addArgs, PS_LIST_TAIL, "-path_base", 0, "define path_base (required)", NULL);
    7071    psMetadataAddS32(addArgs, PS_LIST_TAIL, "-fault", 0, "define fault code", 0);
    7172
Note: See TracChangeset for help on using the changeset viewer.