IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34108 for trunk


Ignore:
Timestamp:
Jun 29, 2012, 9:11:40 AM (14 years ago)
Author:
eugene
Message:

use modified photcode table to count the secfilt filters

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippToPsps/jython/scratchdb.py

    r34104 r34108  
    549549
    550550        # 2 is hardwired -- convert to an enum (should probably read Ohana/src/libdvo/include/dvo.h defines
    551         sql = "SELECT count(TYPE) FROM " + self.dvoPhotcodesTable + " WHERE TYPE = 2"
     551        sql = "SELECT count(TYPE_AS_INT) FROM " + self.dvoPhotcodesTable + " WHERE TYPE_AS_INT = 2"
    552552
    553553        filterCount = 0
     
    567567    '''
    568568    def getOrderedListOfFiltersFromPhotcodesTable(self, interestedFilters):
    569 
    570         sql = "SELECT count(TYPE) FROM " + self.dvoPhotcodesTable + " WHERE TYPE = 'sec'"
    571569
    572570        sql = "SELECT NAME FROM " + self.dvoPhotcodesTable + " WHERE "
Note: See TracChangeset for help on using the changeset viewer.