IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 15, 2010, 1:57:07 PM (16 years ago)
Author:
bills
Message:

implement ordering by Label.priority for camtool -processedexp
Needed to stop sharing the sql to implement this

File:
1 moved

Legend:

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

    r28306 r28339  
    1 -- this query is used by both camtool -pendingexp & camtool -addprocessedexp it
    2 -- does a little more work then is necessary for -addprocessed but it seems
    3 -- "cleaner" to use the same query for both cases
    41SELECT
    52    camRun.*,
     
    118    rawExp.filelevel,
    129    chipRun.magicked AS chip_magicked,
    13     camProcessedExp.path_base
     10    camProcessedExp.path_base,
     11    IFNULL(Label.priority, 10000) AS priority
    1412FROM camRun
    1513JOIN chipRun
     
    2119LEFT JOIN camMask
    2220    ON camRun.label = camMask.label
     21LEFT JOIN Label
     22    ON camRun.label = Label.label
    2323WHERE
    2424    chipRun.state = 'full'
    2525    AND ((camRun.state = 'new' AND camProcessedExp.cam_id IS NULL) OR camRun.state = 'update')
    2626    AND camMask.label IS NULL
     27    AND (Label.active OR Label.active IS NULL)
Note: See TracChangeset for help on using the changeset viewer.