IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 18, 2010, 4:04:27 PM (16 years ago)
Author:
Paul Price
Message:

Adding diffphot to publish.

File:
1 edited

Legend:

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

    r28372 r28411  
    3838        AND (camRun.magicked != 0 OR publishClient.magicked = 0)
    3939    -- WHERE hook %s
     40    UNION
     41    -- Get diffphots to publish
     42    SELECT DISTINCT
     43        client_id,
     44        diff_phot_id AS stage_id,
     45        diffPhotRun.label AS src_label
     46    FROM publishClient
     47    JOIN diffPhotRun
     48    JOIN diffRun USING(diff_id)
     49    JOIN diffInputSkyfile USING(diff_id)
     50    JOIN warpRun ON warpRun.warp_id = diffInputSkyfile.warp1 -- Only JOINing input, not reference!
     51    JOIN fakeRun USING(fake_id)
     52    JOIN camRun USING(cam_id)
     53    JOIN chipRun USING(chip_id)
     54    JOIN rawExp USING(exp_id)
     55    WHERE publishClient.stage = 'diffphot'
     56        AND publishClient.active = 1
     57        AND diffPhotRun.state IN ('full', 'cleaned', 'goto_cleaned')
     58        AND (diffRun.diff_mode = 4 OR publishClient.magicked = 0) -- diffPhotRun doesn't respect magic
     59    -- WHERE hook %s
    4060    ) AS publishToDo
    4161-- Only get stuff that hasn't been published
Note: See TracChangeset for help on using the changeset viewer.