IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 1, 2011, 4:05:53 PM (15 years ago)
Author:
rhenders
Message:

finally cleared up image_id/extern_id confusion

File:
1 edited

Legend:

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

    r31951 r31965  
    533533    Updates provided table with DVO IDs from DVO table
    534534    '''
    535     def updateDvoIDs(self, table, sourceID, imageID):
    536 
    537         self.logger.debug("Updating table '" + table + "' with DVO IDs using imageID = " + imageID)
     535    def updateDvoIDs(self, table, sourceID, externID):
     536
     537        imageID = self.scratchDb.getImageIDFromExternID(sourceID, externID)
     538        self.logger.debug("Updating table '" + table + "' with DVO IDs using imageID = %d" % imageID)
    538539        sql = "UPDATE IGNORE " + table + " AS a, " + self.scratchDb.dvoDetection + " AS b SET \
    539540               a.ippObjID = b.ippObjID, \
     
    617618                # store sourceID/imageID combo in Db so DVO can look up later
    618619                if not self.useFullTables:
    619                     self.scratchDb.insertNewDvoImage(header['SOURCEID'], header['IMAGEID'])
     620                    self.scratchDb.insertNewDvoExternID(header['SOURCEID'], header['IMAGEID'])
    620621
    621622                # store these for later
Note: See TracChangeset for help on using the changeset viewer.