IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 15, 2016, 10:01:32 AM (10 years ago)
Author:
heather
Message:

various changes over the past few weeks to fix bugs etc

File:
1 edited

Legend:

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

    r39544 r39764  
    659659
    660660
     661    '''
     662    Gets the exp_id from teh exp_name
     663    '''
     664    def getExpIdFromExpName(self, expName):
     665       sql = "SELECT exp_id from rawExp where exp_name = '"+expName+"'"
     666       try:
     667           rs = self.executeQuery(sql)
     668       except:
     669           self.logger.infoPair("failed sql:",sql)
     670           self.logger.exception("Can't query for imageIDs")
     671           
     672
     673       expIDs = []
     674       while (rs.next()):
     675           expIDs.append(rs.getString(1))
     676       rs.close()
     677       expID = expIDs[0]
     678       return expID
     679
     680   
     681
     682
    661683
    662684    '''
Note: See TracChangeset for help on using the changeset viewer.