IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33185


Ignore:
Timestamp:
Jan 31, 2012, 4:27:16 PM (14 years ago)
Author:
rhenders
Message:

now dropping SkyTable and Images tables when resetting DVO tables; renamed method that checks we are using correct DVO

File:
1 edited

Legend:

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

    r33182 r33185  
    313313    Checks whether DVO files we have ingested are form the DVO path provided
    314314    '''
    315     def isThisDvoCurrentlyIngested(self, path):
     315    def isCorrectDvo(self, path):
    316316
    317317        sql = "SELECT path FROM " + self.dvoDoneTable + " where path LIKE '%Images.dat'"
     
    331331        except:
    332332            self.logger.errorPair("No DVO files ingested for this path", path)
    333             return False
     333            return True
    334334
    335335    '''
     
    465465       self.logger.infoPair("Dropping table", self.dvoDetectionTable)
    466466       self.dropTable(self.dvoDetectionTable)
     467       self.logger.infoPair("Dropping table", self.dvoSkyTable)
     468       self.dropTable(self.dvoSkyTable)
    467469       self.logger.infoPair("Dropping table", self.dvoDoneTable)
    468470       self.dropTable(self.dvoDoneTable)
     471       self.logger.infoPair("Dropping table", self.dvoImageTable)
     472       self.dropTable(self.dvoImageTable)
    469473
    470474       self.logger.infoPair("Creating table", self.dvoMetaTable)
Note: See TracChangeset for help on using the changeset viewer.