IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 1, 2014, 1:24:00 PM (12 years ago)
Author:
heather
Message:

found typos in vo tables

File:
1 edited

Legend:

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

    r36714 r36715  
    398398
    399399        # print "staring stack stage cmf"
    400 
     400        #self.logger.infoPair("in stackstagecmf - sql is: ", sql)
    401401        # get single path base for the directory containing all cmf files, one of which is hopefully for our stack_id
    402402        try:
     
    524524               AND filter = '" + filter + "' \
    525525               AND sky_id = %d" % skyID
    526              
    527         try:
    528             rs = self.executeQuery(sql)
    529             rs.first()
    530             return rs.getInt()
    531              
     526
     527#        self.logger.infoPair("sql",sql)
     528
     529        try:
     530            rs = self.executeQuery(sql)
     531                        
    532532        except:   
    533533            self.logger.exception("can't query for stackid in DVO")
    534534            self.logger.infoPair("failed sql:", sql)
    535             return -999
    536 
    537         return 0
     535            return 0
     536
     537        rs.first()
     538        try:
     539            stackid = rs.getInt(1)
     540            self.logger.infoPair("found stack_ID", stackid)
     541        except:
     542            stackid = -999
     543            self.logger.infoPair("using stack_ID",stackid)
     544           
     545        return stackid   
Note: See TracChangeset for help on using the changeset viewer.