IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 20, 2015, 2:53:37 PM (11 years ago)
Author:
eugene
Message:

adjust inv cmf IPP_IDET by value depending on [num]

File:
1 edited

Legend:

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

    r39148 r39170  
    406406
    407407        return size
     408
     409    '''
     410    Returns a row count for this table
     411    '''
     412    def getMaxIPP_IDET(self, table):
     413
     414        sql = "SELECT MAX(IPP_IDET) FROM " + table
     415        rs = self.executeQuery(sql) 
     416
     417        if not rs.first():
     418            self.logger.exception("Could not count rows for table: '" + table + "'")
     419            return 0
     420
     421        return rs.getInt(1)
    408422
    409423    '''
Note: See TracChangeset for help on using the changeset viewer.