Changeset 35190
- Timestamp:
- Feb 21, 2013, 8:48:35 AM (13 years ago)
- File:
-
- 1 edited
-
trunk/ippToPsps/jython/dvo.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippToPsps/jython/dvo.py
r35183 r35190 394 394 self.logger.infoPair("Purging", "%d regions" % len(regions)) 395 395 396 detectionDeleteCount = self.scratchDb.purgeTheseDvoRegions(regions, self.ingestFileTypes) 397 if detectionDeleteCount > 0: self.logger.infoPair("Deleted", "%d detections" % detectionDeleteCount) 396 self.scratchDb.purgeTheseDvoRegions(regions, self.ingestFileTypes) 397 398 ## detectionDeleteCount = self.scratchDb.purgeTheseDvoRegions(regions, self.ingestFileTypes) 399 ## if detectionDeleteCount > 0: self.logger.infoPair("Deleted", "%d detections" % detectionDeleteCount) 398 400 399 401 return True … … 590 592 self.ippToPspsDb.clearIngestedBoxes(self.scratchDb.dbHost) 591 593 592 print "*******************************************************************************"593 self.logger.warning("about to delete detection table and re-ingest; is this correct?")594 response = raw_input("(y/n) ")595 if response != "y":596 raise597 self.logger.warning("Are you ABSOLUTELY sure you want to do this?")598 response = raw_input("(y/n) ")599 if response != "y":600 raise594 ## print "*******************************************************************************" 595 ## self.logger.warning("about to delete detection table and re-ingest; is this correct?") 596 ## response = raw_input("(y/n) ") 597 ## if response != "y": 598 ## raise 599 ## self.logger.warning("Are you ABSOLUTELY sure you want to do this?") 600 ## response = raw_input("(y/n) ") 601 ## if response != "y": 602 ## raise 601 603 602 604 # drop detections table
Note:
See TracChangeset
for help on using the changeset viewer.
