IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 28414


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

Fix advance mode to respect faults.

File:
1 edited

Legend:

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

    r28365 r28414  
    33FROM diffPhotRun
    44JOIN diffSkyfile USING(diff_id)
    5 JOIN diffPhotSkyfile USING(diff_phot_id)
     5LEFT JOIN diffPhotSkyfile USING(diff_phot_id, skycell_id)
    66WHERE diffPhotRun.state = 'new'
    7     AND diffPhotSkyfile.fault = 0
    87    AND diffSkyfile.fault = 0
    98    AND diffSkyfile.quality = 0
     
    1110GROUP BY diff_phot_id
    1211HAVING COUNT(diffPhotSkyfile.skycell_id) = COUNT(diffSkyfile.skycell_id)
     12    AND SUM(IF(diffPhotSkyfile.fault > 0, 1, 0)) = 0
Note: See TracChangeset for help on using the changeset viewer.