Пример #1
0
    def commitDB(self):
        """ Commit changes to DB """

        self._sq.commit()

        if self.config.updateSignAfterEachCommit:
            update_sum(self._db)
Пример #2
0
    def commitDB(self):
        """ Commit changes to DB """

        self._sq.commit()

        if self.config.updateSignAfterEachCommit:
            update_sum(self._db)
Пример #3
0
 def closeAndUpdateSum(self):
     """ It closes the db and updates db sum file """
     if self._sq:
         self._sq.close()
         update_sum(self._db)
Пример #4
0
 def closeAndUpdateSum(self):
     """ It closes the db and updates db sum file """
     if self._sq:
         self._sq.close()
         update_sum(self._db)
Пример #5
0
 def updateLocalSum():
     if os.path.exists(self.local_db):
         update_sum(self.local_db)