(self)
| 210 | t.start() |
| 211 | |
| 212 | def dataStore(self): |
| 213 | cnt = 0 |
| 214 | conn = sqlite3.connect(self.dataBase, check_same_thread=False) |
| 215 | cur = conn.cursor() |
| 216 | while cnt < 1000 and not self.dataQue.empty(): |
| 217 | tableName, data = self.dataQue.get() |
| 218 | sql = 'INSERT INTO %s VALUES ' % tableName + \ |
| 219 | '(' + '?,'*(len(data)-1) + '?' + ')' |
| 220 | try: |
| 221 | cur.execute(sql, data) |
| 222 | except sqlite3.IntegrityError: |
| 223 | pass |
| 224 | cnt += 1 |
| 225 | |
| 226 | conn.commit() |
| 227 | cur.close() |
| 228 | conn.close() |
| 229 | self.createTimer() |
| 230 | |
| 231 | # DEFAULT_VEHTYPE |
| 232 | def getAllvTypeID(self) -> list: |
nothing calls this directly
no test coverage detected