Changeset 37763 for trunk/ippToPsps/jython/detectionbatch.py
- Timestamp:
- Dec 18, 2014, 6:00:15 PM (12 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/detectionbatch.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/detectionbatch.py
r37592 r37763 610 610 ''' 611 611 612 def updatePspsUniqueIDs(self,table ):612 def updatePspsUniqueIDs(self,table, ota): 613 613 sql = "UPDATE "+table+" join (select @r:=@r+1 rownum, objID from \ 614 614 (select @r:=0) r, "+table+" t) as foo using (objID) set \ 615 uniquePspsP2id = ((" +str(self.batchID)+ "*1000000000 ) + rownum)" 615 uniquePspsP2id = ((" +str(self.batchID)+ "*1000000000 ) \ 616 + (" +str(ota) + "*10000000 )+rownum)" 616 617 try: self.scratchDb.execute(sql) 617 618 except: 618 619 self.logger.errorPair('failed sql',sql) 619 r eturn620 raise 620 621 621 622 ''' … … 651 652 #self.logger.info("deleted nulls") 652 653 self.logger.info("add psps unique p2 ids") 653 self.updatePspsUniqueIDs("Detection_" + chipname, self.imageIDs[chipname]) 654 ota = x*10+y 655 self.updatePspsUniqueIDs("Detection_" + chipname, ota) 654 656 self.updateImageID("Detection_" + chipname, x, y) 655 657 #self.logger.info("updateImageId")
Note:
See TracChangeset
for help on using the changeset viewer.
