IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 14, 2010, 5:02:11 PM (16 years ago)
Author:
Paul Price
Message:

Additional search options for pubtool -definerun. Support publishing data in cleaned state (detections should still be there).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pubtool_definerun.sql

    r27041 r28319  
    66FROM (
    77    -- Get diffs to publish
    8     SELECT
     8    SELECT DISTINCT
    99        client_id,
    1010        diff_id AS stage_id,
     
    1212    FROM publishClient
    1313    JOIN diffRun
     14    JOIN diffInputSkyfile USING(diff_id)
     15    JOIN warpRun ON warpRun.warp_id = diffInputSkyfile.warp1 -- Only JOINing input, not reference!
     16    JOIN fakeRun USING(fake_id)
     17    JOIN camRun USING(cam_id)
     18    JOIN chipRun USING(chip_id)
     19    JOIN rawExp USING(exp_id)
    1420    WHERE publishClient.stage = 'diff'
    1521        AND publishClient.active = 1
    16         AND diffRun.state = 'full'
     22        AND diffRun.state IN ('full', 'cleaned', 'goto_cleaned')
    1723        AND (diffRun.magicked > 0 OR diffRun.diff_mode = 4 OR publishClient.magicked = 0)
    1824    -- WHERE hook %s
     
    2531    FROM publishClient
    2632    JOIN camRun
     33    JOIN chipRun USING(chip_id)
     34    JOIN rawExp USING(exp_id)
    2735    WHERE publishClient.stage = 'camera'
    2836        AND publishClient.active = 1
    29         AND camRun.state = 'full'
     37        AND camRun.state IN ('full', 'cleaned', 'goto_cleaned')
    3038        AND (camRun.magicked > 0 OR publishClient.magicked = 0)
    3139    -- WHERE hook %s
     
    3341-- Only get stuff that hasn't been published
    3442LEFT JOIN publishRun USING(client_id, stage_id)
    35 WHERE publishRun.client_id IS NULL
Note: See TracChangeset for help on using the changeset viewer.