IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 17, 2010, 2:39:25 PM (16 years ago)
Author:
bills
Message:

fix problem in update

File:
1 edited

Legend:

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

    r28082 r29171  
    9797        AND warpSkyfile.fault = 0
    9898        AND camRun.state = 'full'
    99         AND chipProcessedImfile.data_state = 'full'
    100         -- if warpSkyfile was magicked previously require inputs to be magicked
    101         -- this blocks processing until all the chip inputs have been destreaked
    102         AND (warpSkyfile.magicked = 0 OR chipProcessedImfile.magicked >= 0)
    10399        AND (Label.active OR Label.active IS NULL)
    104100        -- where hook 2 %s
    105101    GROUP BY warp_id, skycell_id
    106     HAVING COUNT(warpSkyCellMap.class_id) = COUNT(chipProcessedImfile.class_id)
     102    -- if warpSkyfile was magicked previously require inputs to be magicked
     103    -- this blocks processing until all the chip inputs have been destreaked
     104    HAVING COUNT(warpSkyCellMap.class_id) = SUM(IF(chipProcessedImfile.data_state ='full' and (chipRun.magicked = 0 OR chipProcessedImfile.magicked > 0), 1, 0))
    107105    -- limit hook 2 %s
    108106    )
Note: See TracChangeset for help on using the changeset viewer.